GameCrasher Posted May 18, 2020 Share Posted May 18, 2020 I want to create a text file using lua but I'm not sure how. Link to comment Share on other sites More sharing options...
GameCrasher Posted May 20, 2020 Author Share Posted May 20, 2020 On 5/18/2020 at 4:30 AM, HEROGAMEOfficial said: How do I add text files using lua? In lua GG: *.txt its load address. *.lua its script. *.lasm its script Disassemble. *.* Its custom. So what do you want? I want to find out how I can create a new text file using a gg .lua code Link to comment Share on other sites More sharing options...
Administrators Enyby Posted May 20, 2020 Administrators Share Posted May 20, 2020 Same as using not gg .lua code. It is common task task Lua related. Use google for find answer. Link to comment Share on other sites More sharing options...
ItsSC Posted May 20, 2020 Share Posted May 20, 2020 io.open(your path,"w"):write(anything you want to write) eg: io.open("/sdcard/Download/Newfile.txt","w"):write("This is a new file created by the script.") Link to comment Share on other sites More sharing options...
HEROGAMEOfficial Posted May 20, 2020 Share Posted May 20, 2020 11 hours ago, GameCrasher said: I want to find out how I can create a new text file using a gg .lua code 1. Data = io.open("/sdcard/file.lua", "w"):write("This text in your file") 2. Data = io.open("/sdcard/file.lua", "w") Data:write("This text your file") If finish you can close. Data:close() 3. gg.saveVariable({"Your text in here."}, "/sdcard/file.lua") Link to comment Share on other sites More sharing options...
HEROGAMEOfficial Posted May 18, 2020 Share Posted May 18, 2020 How do I add text files using lua? In lua GG: *.txt its load address. *.lua its script. *.lasm its script Disassemble. *.* Its custom. So what do you want? Link to comment Share on other sites More sharing options...
Question
GameCrasher
I want to create a text file using lua but I'm not sure how.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.