Hi,
I create a byte array and then copy a string (256 bytes) and two integers (using BitConverter::G etBytes()) into it. I use File::WriteAllB ytes() to save it to disk. Then I read it with File::ReadAllBy tes(). If I write and read immediately following each other, everything works properly. However, if I write, then do some other stuff, then read, the string comes out ok, but the integers are not correct. Any ideas? Thanks.
Vinoj
I create a byte array and then copy a string (256 bytes) and two integers (using BitConverter::G etBytes()) into it. I use File::WriteAllB ytes() to save it to disk. Then I read it with File::ReadAllBy tes(). If I write and read immediately following each other, everything works properly. However, if I write, then do some other stuff, then read, the string comes out ok, but the integers are not correct. Any ideas? Thanks.
Vinoj
Comment