Nuno Carvalho wrote:

> > Use "w+". That will create the file if it doesn't exist, and truncate
> > it to zero length if it does exist.
> 
>   That's what I don't want ! I don't want it truncate file!
>   If file doesn't exist just create it else open it for read/write without
> truncate it!

Then use "a+", but your last message specifically said that you didn't 
want to append.

In the event that the output file already exists, you have two
options: you can either replace (truncate) the existing file, or
append to it.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to