Problems reading a txt file..

Blitz3D Forums/Blitz3D Beginners Area/Problems reading a txt file..

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.


;tmp$ = ReadLine(file)
tmp$ = "testing line"
If(Instr(tmp$,"New list")) = 0 Then
Print "New List not in string"
Else
Print "New list found in string"
EndIf



add 'New list' to the string tmp$ and see its located, the same is if ReadLine(file) is used. one extra note Instr() returns the position its found within the string.

kev