Jump to content
RezaHaxz

Remove / Write File

Recommended Posts

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

Edited by RezaHaxz

Share this post


Link to post
Share on other sites
os.remove('/storage/emulated/0/filename.txt')

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

 

Edited by Crystal_Mods100x
error

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...