Game Development Community

Reading characters rather than lines from files

by Tim Saunders · in Torque Game Builder · 11/20/2007 (4:47 am) · 2 replies

I would like to be able to read in single characters from a file rather than whole lines.

Is there an equivalent for:

%file.ReadLine();

Something like:

%file.Read(); ?

I just want to load in very simple map information data from a text file.

#1
11/20/2007 (4:17 pm)
I'm not sure if there is or isn't, but what is wrong with ReadLine()? Why can't you read in a line and then parse the line char by char?
#2
11/25/2007 (3:40 am)
Ah I've tried that and it works thanks.