Re: File writing Problem



Hi,

you can read in the documentation :

'r' Open file for reading (default).
'w' Open file, or create new file, for writing; discard existing
contents, if any.
'a' Open file, or create new file, for writing; append data to the
end of the file.
'r+' Open file for reading and writing.
'w+' Open file, or create new file, for reading and writing; discard
existing contents, if any.
'a+' Open file, or create new file, for reading and writing; append
data to the end of the file.
'A' Append without automatic flushing; used with tape drives.
'W' Write without automatic flushing; used with tape drives.

Jérôme
.