Computer Science Canada Loading Tile Based Maps from text files |
Author: | Adaub7282 [ Tue Oct 06, 2009 9:52 am ] | ||
Post subject: | Loading Tile Based Maps from text files | ||
So I am attempting to make tile based maps that will be loaded from a text file. Problem is, there's a problem. "Variable has no data" I am asking the people of compsci, in their infinite Turing wisdom, for guidance.
[/syntax] |
Author: | Tony [ Tue Oct 06, 2009 10:33 am ] |
Post subject: | RE:Loading Tile Based Maps from text files |
You are loading a file as a binary read, while I suspect that you want ASCII get. |
Author: | DemonWasp [ Tue Oct 06, 2009 10:35 am ] |
Post subject: | RE:Loading Tile Based Maps from text files |
Just a guess, but did you really mean to open your stream for read? Read is only used when your file is binary-encoded. If you created "map.txt" in an editor like Notepad, you want to use get, which expects an ASCII-encoded file. |