Home computickets entry into LUA files

entry into LUA files

Author

Date

Category

How to write to the end of the file?

File: write ()

just replaces the text.


Answer 1, Authority 100%

According to documentation , you need open file in Add-on mode.

Example from there:

- Opens a File in Append Mode
File = io.open ("test.lua", "a")
- APPENDS A WORD TEST TO THE LAST LINE OF THE FILE
File: Write ("- Test")
- Closes The Open File
File: Close ()

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions