GameCrasher Posted May 18, 2020 Posted May 18, 2020 I want to create a text file using lua but I'm not sure how.
GameCrasher Posted May 20, 2020 Author 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
Administrators Enyby Posted May 20, 2020 Administrators Posted May 20, 2020 Same as using not gg .lua code. It is common task task Lua related. Use google for find answer.
ItsSC Posted May 20, 2020 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.")
HEROGAMEOfficial Posted May 20, 2020 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")
HEROGAMEOfficial Posted May 18, 2020 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?
Question
GameCrasher
I want to create a text file using lua but I'm not sure how.
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.