Jump to content
  • 0

Write in file


NIKITAOFF

Question

2 answers to this question

Recommended Posts

I Dont Know But It Is Possible To Write And Create An File On LUA Script

But Me Dont Know How To Set The Patch For The File In Script -_-

But Try This : 

 

-- CREATE FILE TEST
--VARIABLES
local Script
Script = TEST

--Create The File
file = io.open(gg.getFile():gsub('lua', '.lua'),'w')
file:write(Script)
file:close()

 

Link to comment
Share on other sites

On 12/12/2018 at 12:12 AM, NIKITAOFF said:

Hello!

How to write text to file via gg.prompt?

Can anyone help?

Please

-----------------------------------------------------

info = gg.prompt({"type text for write file"},nil, {"text"})
if info == nil then return end
file = io.open(gg.getFile()..'.File', 'w')
file:write(info[1])
file:close()
os.exit()

-----------------------------------------------------

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.