Hey guys, I have another issue coming this time from any data from the .txt files.
My code is :
// Project: Nameandnumbers
// Created: 2015-11-10
// set window properties
SetWindowTitle( "Nameandnumbers" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
OpenToRead ( 1, "myfile.txt" )
a = ReadInteger ( 1 )
b# = ReadFloat ( 1 )
c$ = ReadString ( 1 )
if a = 10
a = 10
endif
do
Print (a)
Print( ScreenFPS() )
Sync()
loop
CloseFile ( 1 )
Notice that the file called "myfile.txt" the only thing stored is : " 10 " ( without quotes ) on the first row
When i run the program the number i receive is : " 12337 " ... ?! where is this coming from?
After this i want to make another code to write in files some controls / data
Where is the problems this time ?
Thank you for your time,
Alex