OK, fine, for appending.
![Smile :-) :-)](/styles/default/custom/smilies/smile.gif)
The terminology is tricky--sometimes when
they say "write" they mean, as opposed to "append".
I don't want to harp on it, but it isn't just appending. You can open a file
for "normal" writing and alter the existing contents of a file as well as
adding to the end. Most of the code samples out there for altering the
contents of a file probably read the entire file into memory, alter the
contents, and then write the whole thing back out, but it doesn't HAVE to be
done that way. Probably the best argument against direct manipulation of a
file stream is that if you're reading a file and you discover something you
want to change, you have to back up the stream pointer to overwrite that
particular item. Of course, you have to do this for a MemoryStream too....
For reference, the only members of the FileMode enumeration which will wipe
out an existing file are Create and Truncate.