[Mono-list] Buffering for StreamWriter

Nick Drochak ndrochak@gol.com
Thu, 16 May 2002 23:38:03 +0900


| From: Jerry Houston [mailto:jerry@jhouston.net] 
| I always call Flush() on StreamWriter before calling Close(). 
|  Is that unnecessary?  And if you Flush() but don't Close(), 
| is the file properly closed anyway when the StreamWriter goes 
| out of scope?

I think Flush()-then-Close() is redundant.  That's my interpretation of
the docs.

The docs just say you should Close() to be sure everything is written
out. It is not clear to me at least what should happen if there's not a
Close().

Nick