T
ThunderMusic
Hi,
In my app, I open a file using a FileStream then pass it to a
BinaryWriter. I then use the BinaryWriter instance to write to my file. But
a problem arose : The file never gets bigger than 1kb. The code calls the
bw.write(TheValue), but nothing is written after 1kb. I'm I missing
something?
Here's the way I create my FileStream and BinaryWriter :
Filename = System.Environment.CurrentDirectory() & "\msec.dat"
fs = System.IO.File.OpenWrite(Filename)
bw = New System.IO.BinaryWriter(fs)
When I write I do:
bw.write(TheValueToWrite)
And when done writing, I do :
bw.close
fs.close
Am I missing something?
Thanks
ThunderMusic
In my app, I open a file using a FileStream then pass it to a
BinaryWriter. I then use the BinaryWriter instance to write to my file. But
a problem arose : The file never gets bigger than 1kb. The code calls the
bw.write(TheValue), but nothing is written after 1kb. I'm I missing
something?
Here's the way I create my FileStream and BinaryWriter :
Filename = System.Environment.CurrentDirectory() & "\msec.dat"
fs = System.IO.File.OpenWrite(Filename)
bw = New System.IO.BinaryWriter(fs)
When I write I do:
bw.write(TheValueToWrite)
And when done writing, I do :
bw.close
fs.close
Am I missing something?
Thanks
ThunderMusic