binary writer doesnt seem to do anything

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI,

Im sure this is a simple one.
Im using compactframework in emulation mode and debugging in visual studio

objStream = New FileStream("\my documents\test.bin", FileMode.Create,
FileAccess.ReadWrite)

objBinWriter = New BinaryWriter(objStream)

objBinWriter.Write("test")
objBinWriter.Flush()
objBinWriter.Close()
objStream.Close()

no file seems to get written to disk ????
 
I suppose that the problem is somewhere else. Try to create a test
application where will be the code snippet that you posted and run it.
The file should be created.
 
Back
Top