Posted 06 May 2012 - 06:31 PM
[Lua][Question](Sorry for not adding tags in title)
How can I make a .lua file anywhere on my harddisk. I have my code to make a .lua file and write to it, but I need te be able to save/read it from anywhere on the harddisk.
How can I make a .lua file anywhere on my harddisk. I have my code to make a .lua file and write to it, but I need te be able to save/read it from anywhere on the harddisk.
local file = io.open("/test.lua", "w")
file:write("Hello!")
file:close()
(so instead of saving it to where its run from, I want to save it to C:/Computercraft/test.lua. But when I try that it does nothing, neither throw an error)