reading/writting to file

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

I am trying to write a Blitz app that read and writes to a file. I have played around with the example code that ships with Blitz3D. Blitz does not seem to write standard charracters to a .txt file and it does not seem to read characters from a .txt file as text. So for example if I have the chracter "2" in my tex file and I set my app up to read it into a varaiable then print that to screen it will be displayed as "50". If I put the number 1 in the text file it will be printed to screen via Blitz as 49. How do I get the number that is printed to my screen to be the same as the one the chracter in my text file. Here is the code I am using:


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

Read1 = ReadInt( filein )

Print "Integer Data Read From File - myFile.txt "
Print Read1
WaitKey()


Thank you.