file.write()

I tested it, and it requires a .txt extension, is where a way, once you do say

[lua]file.write(“MyStuff/data.txt”, “lawl”)[/lua]

a way once that’s written to convert to a .lua file?

Edit:
nevermind, found this : http://www.facepunch.com/showthread.php?t=463961

It’s a really bad idea to have that on your client, because servers can write files anywhere on your hard drive.

Also simple questions like this should go in the Newbie Questions forum.

^ This, although you could rewrite it to restrict to certain things.