Reading Files

Blitz3D Forums/Blitz3D Beginners Area/Reading Files

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.

I am having trouble with this code:

a = ReadFile("kkr22.mlu")
	Repeat
		b$ = ReadLine(a)
		c% = Instr(b$, folderNameOpen$)
		DebugLog c%
		If c% = 1
			length = Len(b$)
			For i% = 1 To length
			j$ = Mid$(b$, i, 1)
			If j$ = "="
				numOfSites% = Mid$(b$, i + 1, length  - i)
				Exit
				breakRepeat = True
			End If
			Next
		End If
	Until Eof(a)


The debuglog says c% is 1 and i have tried c% > 0, but it doesnt go into that part of the code.