Hello,
I ported my project to the new IDE and I noticed that none of my save files would no longer load. I was using the OpenToRead( ID, szFile ) variant to load the file and tested it with FileIsOpen and it reported that the file did not open. I swapped over to integer OpenToRead( szFile ) and the file would then load. Is the first method broken? Example of broken code below.
function GetIntegerFromini(Parameter$)
filename$ = "LostBitEngine.ini"
if GetFileExists(filename$) = 0
message("Error: Configuration file not found or corrupted. Please reinstall the application")
End
endif
OpenToRead(0, filename$)
while FileEOF(0) <> 1
Data$ = ReadLine(0)
ReadPar$ = GetStringToken(Data$, " = ", 1)
If ReadPar$ = Parameter$
ReadDat = val(GetStringToken(Data$, " = ", 2))
Exit
EndIf
endwhile
CloseFile(0)
endfunction ReadDat