FileIO Tutorial Difficulty- Cannot create a new text document
by TheXIV · in Torque X 2D · 04/25/2011 (5:51 pm) · 0 replies
I don't think I saw anyone else deal with this issue so it's probably due to just starting out on this, but I am unable to follow through on creating the "Hello World!" text file in the FileIO tutorial. I created the .cs file using TextEdit (made it Plain Text) and copy/pasted the code from the tutorial into it, placed the .cs file in the GameScripts section of the TutorialBase Game folder as instructed. When I entered the console and typed in writeFile();, I get the error message "<input> (0): Unable to find function writeFile". I'm still very much new to this, so I can only surmise that Torque simply can't find it as it's not getting the error message stated in the code ("File is Not Open For Writing"). Hopefully I'm just missing a step as I can't seem to find any documentation regarding this, so if anyone could help me with this issue I would greatly appreciate it.
It should be mentioned that I'm currently working on the Mac OSX version of Torque, and I understand there are issues with FileIO for that version, I hope that sheds light on the situation.
It should be mentioned that I'm currently working on the Mac OSX version of Torque, and I understand there are issues with FileIO for that version, I hope that sheds light on the situation.