file.Write problems.

Writing in different folders doesn’t seem to work on some occasions, work on others.

For example, this won’t work


lua_run_cl file.Write("One/Two.txt", "Three")

But this will:


lua_run_cl file.Write("Two.txt", "Three")

So how can I write in different folders inside of the data folder?

You have to create the directory first.
**[File.CreateDir

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=File.CreateDir)**

Thanks.