35 posts
Location
Phoenix, Arizona
Posted 13 February 2012 - 11:33 PM
I was wondering if anyone knows how to delete a file with LUA. All I know is the creating and editing. Also, is there a possible way to refer to an API that's not included in ComputerCraft's directory, like an API in a disk?
5 posts
Posted 13 February 2012 - 11:37 PM
i haven't checked but i believe this works
os.remove (filename)
454 posts
Location
London
Posted 13 February 2012 - 11:55 PM
Type "help fs" ingame (in a computer); it'll tell you the filesystem commands.
You may also be intrested in "help apis"
You can load an API like this:
os.loadAPI("disk/yourapi")
i haven't checked but i believe this works
os.remove (filename)
That does not work, it is:
fs.delete(filename)
35 posts
Location
Phoenix, Arizona
Posted 14 February 2012 - 01:11 AM
Thanks alot. :(/>/>
496 posts
Location
Harlem, NY
Posted 14 February 2012 - 02:09 AM
in the shell you can type delete (filename)
redworks alias for delete is del