for LOOP reading files...

Blitz3D Forums/Blitz3D Beginners Area/for LOOP 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.

Im trying to check if
001.ITM to 005.ITM exist but it wont work they say it doesnt exist..->[data]->[items]-> *.ITM

oh and is there a way to get how many .ITM there is in a directory?

For t = 1 To 5

file_num = 0 + 1
file_path = "data/items/00" + file_num + ".ITM"
filein = ReadFile (file_path)

If filein = False
	RuntimeError "Error could not read file"
Else
	Notify "File Reading Successful"
End If

CloseFile(filein)

Next