Game Development Community

Loading Information from a File

by Griffin Milsap · in Torque Game Engine · 09/03/2005 (9:53 am) · 3 replies

I have a file, that when opened up in notepad just has a bunch of numbers.

-------------
1203
2032
1029
4823
...
-------------

I'm looking for a way to open this file and read it line by line in the engine, and assign each number to an array. Any help?

-Griff

#1
09/03/2005 (9:56 am)
That's easy. Search the forums for fileobject. It will give you all the info you need.
#2
09/03/2005 (12:14 pm)
That looks good.

Is OpenForRead fixed?

-griff
#3
09/03/2005 (1:47 pm)
No it has been functioning as long as I can remember, or it was fixed long ago.