Jump to content
  • 0

Remove / Write File


RezaHaxz

Question

Posted
thisfile = gg.getFile()

os.remove(thisfile) -- Remove Not Work
-- And
local file = io.open(thisfile,"w") -- Write Not Work
file:write("Hi World")
file:close()

when i want write or remove file not work

but other file work

4 answers to this question

Recommended Posts

Posted
local gg = gg
item = "/storage/emulated/0/Download/filename.txt"
io.open(item,"w"):write("hello World")
io.close()
gg.sleep(10000)
os.remove(item)

 

is this what ur trying to do? lol

 

Posted
8 hours ago, ExtremeBoy said:

os.remove('/storage/emulated/0/filename.txt')

 

no imean like

i want to remove "file a" from "file a"

that not work

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.