I've seen some code where if you have a particular sequence that is written by binarywriter --
Code:
bw.write(var1)
bw.write(var2)

and read by binaryreader --

var1 = br.readstring()
var2 = br.readint32()
that doesn't include a peekchar in the read code.

If you read the file in sequence exactly as written, do you need the peekchar?

Other code I've seen includes it --
Code:
Do while br.peekchar <> -1

read
read

loop
Also, another question about binarywriter --

I'm using the save file dialog to save my binary file so I can use any filename I choose.

I'm unsure about the file extension part of things though.

If i just pick a filename, I don't see where there's an extension automatically assigned (not that it's supposed to do that in savefiledialog) -- I have been using filename.bin
-- but I also saw an extension of filename.dat written in binary?

THANKS