Game Development Community

Text file not created in File I/O Tutorial

by Yash Adukia · in iTorque 2D · 06/14/2011 (4:32 am) · 2 replies

In the File I/O Tutorial, when I try to run the code, it shows "file written" in the log but when I check the path of the text file, I find there is no text file created. Although, if I run the readFile function, the text I wrote is displayed correctly.
Is there a bug with the code?...Please help
Thanks in advance.

#1
06/14/2011 (7:30 am)
If you are using the IO tutorial from the Torque 2D documentation, you need to change the path. For example, if you use the data folder to store files, you need to use "game/data/fileName.txt".
#2
06/14/2011 (9:24 pm)
I tried this, still cannot see the text file