Reading Files
Blitz3D Forums/Blitz3D Beginners Area/Reading Files| 
 | ||
| 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. | 
| 
 | ||
| If C% = 1 then it will be running that bit of code. I'd stick a STOP command before the last EndIf and do your debugging from there. |