Forum

> > CS2D > Scripts > Asking about file
Forums overviewCS2D overview Scripts overviewLog in to reply

English Asking about file

1 reply
To the start Previous 1 Next To the start

old Asking about file

Devil-Thanh
GAME BANNED Off Offline

Quote
I have this code
1
2
3
file = io.open("sys/lua/"..UsgnIds[id]..'.txt', "w+") or io.tmpfile()
file:write("test")
file:close()
and the result is
1
test
but I want to add a text in the next line of the file like this
1
2
test
test

So how can I do it?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview