You are not wrong, FileStream is buffered. The reason why I didn't mention it is just because I didn't know it!! I searched MSDN for handling files and streams, found the examples using StreamReader, BinaryReader, TextWriter, and so on but I hadn't found that one... Anyway, I did (quickly) a few tests to compare FileStream.Write and my BufferedFileWriter.Write function (I wrote the exact same data several times and in different orders) and it appears that my class is about 10% faster. Not much. Probably because the size of the internal buffer is different. Thank you for your comment. Even though they are a little bit faster, I think the use of BufferedFileWriter and BufferedFileReader classes makes less sense now!
Last Visit: 31-Dec-99 19:00 Last Update: 30-Apr-16 11:10