reading/writting to file

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

I appreciate the response from you guys. I have tried all the suggested functions ReadByte(), ReadShort() and ReadLine.ReadString and ReadLine() worked, however ReadByte, ReadShort() and ReadInt() are still not working.

Here are a list of functions, the chracter I put in the text file and how Blitz printed it to the screen:

ReadByte()
textfile Blitz output
4 = 52

ReadShort()
textfile Blitz output
12 = 12849

ReadInt
textfile Blitz output
4321 = 855373492

Here is the entire app I am using which produces these results the diffrence being that I experimented with swapping the ReadInt()for ReadShort, ReadByte, etc. My txt file was created in notepad and has no spaces in front of the chracter.

; Open the file to Read
filein = ReadFile("myFile.txt")

Read1 = ReadInt( filein )

Print Read1
WaitKey()

I am running a recently downloaded version of Blitz3D:
IDE v1.64 Linker v1.64 Runtime v1.64

Oddly enough the tutorial program described in WolRons tutorial is exactly what I wanted to do however I can not get it to Run because of(I think) the above problem.