Jump to content
  • 0

How do I add text files using lua?


GameCrasher

Question

5 answers to this question

Recommended Posts

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

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

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.