ReadLine???

Blitz3D Forums/Blitz3D Beginners Area/ReadLine???

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.

Hello!
I've a Problem with ReadLine!

here ist my text file:

d-BATTLE
640
480
32
1

here ist the code:

path$ = CommandLine$()+"\"
gfile = ReadFile(path$+"DATA\main.cfg")

AppTitle ReadLine$(gfile)
Graphics3D Int(ReadLine(gfile)), Int(ReadLine(gfile)), Int(ReadLine(gfile)), Int(ReadLine(gfile))
WaitKey

I get the error: Illegal Graphics3D Mode

Can you help me?