I have found nothing myself. I never touched this function at all. What have I really done that could be causing this? Here's the UpdateINIFile function for reference:
Code: Select all
Function UpdateINIFile$(filename$)
Local file.INIFile = Null
For k.INIFile = Each INIFile
If k\name = Lower(filename) Then
file = k
EndIf
Next
If file=Null Then Return
If file\bank<>0 Then FreeBank file\bank
Local f% = ReadFile(filename)
Local fleSize% = 1
While fleSize<FileSize(file\name)
fleSize=fleSize*2
Wend
file\bank = CreateBank(fleSize)
file\size = 0
While Not Eof(f) ;This is the line where the error occurs
PokeByte(file\bank,file\size,ReadByte(f))
file\size=file\size+1
Wend
CloseFile(f)
End Function