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]>
- Create a file ! Nuno Carvalho
- Re: Create a file ! Glynn Clements
- Re: Create a file ! Nuno Carvalho
- Re: Create a file ! Glynn Clements
- Re: Create a file ! James [on his mailserver]
- Re: Create a file ! Ken Dunn
- Re: Create a file ! Nuno Carvalho
