Hello guys...I have 1 or 2 question about reading and writing from a file.
Reading:
After you have read all the infos from the file you use
filestream.close();
binaryreader.close
I am wondering...if I insert a filstream.flush() (before filestream.close()) does it have any effect? or is it necessary in reading a file? (as the flush() void says it clears all buffers and causes any buffered data to be writen to the file)
Writing:
OK as above I am wondering If it's necessary that a filestream.flush() and a binarywriter.flush() to exist before the files close.
General:
How about disposing (not sure what it is but it says that it releases all the resources being used by the stream)
Would it be any good to insert a filestream/binarywriter/binaryreader.dispose()? If so before or after the file closes?






