Jump to content
  • 0

io.open vs gg.prompt


Hamzabbas

Question

help enyby

help topgeoyt

your the both genius person in lua scripting please help me i have script in which i was using gg.prompt and file writing i.o open

Path = ("/storage/emulated/0/")
first = gg.prompt({[1]='file name'})
file = io.open("/storage/emulated/0/"..data[1]..,"a+")
file:write("exit()  os._exit")
file:close()

please reply me i think the error in third line please fix this lua 

 

[added 0 minutes later]
Just now, Hamzabbas said:

help enyby

help topgeoyt

your the both genius person in lua scripting please help me i have script in which i was using gg.prompt and file writing i.o open


Path = ("/storage/emulated/0/")
first = gg.prompt({[1]='file name'})
file = io.open("/storage/emulated/0/"..data[1]..,"a+")
file:write("exit()  os._exit")
file:close()

please reply me i think the error in third line please fix this lua 

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

54 minutes ago, Hamzabbas said:

help enyby

help topgeoyt

your the both genius person in lua scripting please help me i have script in which i was using gg.prompt and file writing i.o open


Path = ("/storage/emulated/0/")
first = gg.prompt({[1]='file name'})
file = io.open("/storage/emulated/0/"..data[1]..,"a+")
file:write("exit()  os._exit")
file:close()

please reply me i think the error in third line please fix this lua 

 

[added 0 minutes later]

 

Well , those 2 apis are fully different things .

May be you want to select file and read it ? Or whats your main purpose ?

Link to comment
Share on other sites

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.