Nuno Carvalho wrote:

>  Is there some way to open a file with fopen() on mode "r+b" but if the
> file doesn't exist it create a new one automatically !?
> 
>  I only can do it with "a+b" but I don't want the append command !

Use "w+". That will create the file if it doesn't exist, and truncate
it to zero length if it does exist.

The "b" option isn't relevant on Unix.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to