Game Development Community

File IO - Creating a Directory using Script

by Q90Games - Christopher Evans · in Torque Game Builder · 02/05/2008 (7:48 am) · 4 replies

Im trying to create user account directories using script code. In other words I need to take a user name entered by a user and create a folder "Directory" using script code. Is there an easy way to do this?

#1
02/05/2008 (3:26 pm)
The directories will be created automatically in the Application Data directory when you, for example, call %object.save("some/directories/deep/saved_file.cs");

This will create the directories 'some', 'directories', and 'deep' as it saves the file.

Greg
#2
02/11/2008 (11:58 am)
Is there another way to save the file in other path?
#3
02/11/2008 (3:17 pm)
From 1.6 on, saving files can only occur in the Application Data directory.

Greg
#4
02/12/2008 (1:12 am)
Thank your answer. Use the fileObject or another FileIO to write file only occur in Application Data directory too?