That's because you are using ReadInt() which actually reads in *4* bytes (in other words, 4 characers) which is why you get odd results. An integer requires 4 bytes for storage because of it's size (4,294,967,296 or 2,147,483,648 signed).
In order to read in 1 byte, use ReadByte().
2 bytes is ReadShort().
Or do as the guys suggested above and use ReadLine().
Also have a look at this tutorial I wrote: http://www.blitzbasic.com/Community/posts.php?topic=27896
In order to read in 1 byte, use ReadByte().
2 bytes is ReadShort().
Or do as the guys suggested above and use ReadLine().
Also have a look at this tutorial I wrote: http://www.blitzbasic.com/Community/posts.php?topic=27896