reading/writting to file

Blitz3D Forums/Blitz3D Beginners Area/reading/writting to file

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

A character in a typical .txt file is ALWAYS a string, so you cannot use ReadInt, ReadFloat, ReadByte, etc.

The only usable command you can use is ReadLine (AFAIK).

ReadInt, ReadFloat, ReadString, ... are commands to read from binairy files (these are very different from normal txt-files), which can be created/modified by a Hex-editor (or by Blitz itself).

When you intend to read the character "1" from a file using ReadByte, then you read the ascii-value of that character, which is 49.