A simplified version of my code is as follows:
Code: Select all
If ReadFile(0, file)
While Eof(0) = 0
lLine.s=ReadString(0)
lLength=Len(Trim(lline))
If llength>1 And Left(lline,1)<>";"
lCount=CountString(lLine,",")
Debug lline
If lcount<>2
MessageRequester("AVBuddy - Error","One or more lines has an incorrect number of parameters.")
End
EndIf
EndIf
Wend
EndIf
Code: Select all
if llength>1 And Left(lline,1)<>";"
Code: Select all
; IDE Options = PureBasic 5.00 (Windows - x86)
; CursorPosition = 2
; EnableXP
Anyone got any ideas?