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.

Don't worry, its possible.

file=OpenFile("test.txt")
If file=0
	End
EndIf

Repeat
	txt$=ReadLine(file)
	If Left$(txt$,8)="myvalue="
		number=Mid$(txt$,9,Len(txt$))
		Notify number
		Exit
	EndIf
Forever
CloseFile file
End