This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
fuze's profile picture

[Lua] Read/write files outside of CC working directory?

Started by fuze, 09 January 2013 - 11:34 AM
fuze #1
Posted 09 January 2013 - 12:34 PM
Is it possible to read a file located at C:\test.txt?
I've been doing some googling + testing but I can't seem to get outside the CC working directory..
dissy #2
Posted 09 January 2013 - 01:04 PM
No, each computer/turtle is sandboxed so the "root" dir is the numbered directory inside .minecraft/saves/world/computers/

To do otherwise would be a huge security risk. any other players on your server could then just take over your account, and anything it had access to (copy saved passwords, installing trojans, etc)
D3matt #3
Posted 09 January 2013 - 01:17 PM
No, and for good reason.