Or use
WriteInt
instead of WriteLine
coz your are trying to 'WriteLine' to the file and 'ReadInt' back from the file!! It doesn't matter to mix and match text and binary in the same file, you just need to read it back in correctly.
WriteInt
instead of WriteLine
coz your are trying to 'WriteLine' to the file and 'ReadInt' back from the file!! It doesn't matter to mix and match text and binary in the same file, you just need to read it back in correctly.