Using incbin

BlitzMax Forums/BlitzMax Beginners Area/Using incbin

oh yes and that too... didnt notic the other code.

if you want to read everything in a file you can use:
Graphics 800, 600, 0, 60

While Not KeyHit(KEY_ESCAPE)

	Cls
			
	file = ReadFile(filepath$)
	While Not Eof(file)
		text$ = readine(file)
		DrawText text$, 10, 10
	Wend
	
	Flip
	
Wend


I KNOW, YOU SHOULD NOT DO IT LIKE THIS but you get the idea (its not a good idea to read a file every itteration you should read it once and then store the data in somthing (an array might be a good choice here).