Jump to content

Some sort of a log


AMARANT

Recommended Posts

Hi guys, I need to make a text file with some information to be output. I know that I have to use fileCreate and fileWrite functions but I can't figure out how I can start a new line in that file. :( Please, help me out to solve this small issue.

Link to comment
Guest Guest4401
f = fileCreate("file.txt") 
fileWrite(f,"line1\nline2") 
fileClose(f) 

 

or

 

f = fileCreate("file.txt") 
fileWrite(f, 
[[ 
line1 
line2 
]] 
) 
fileClose(f) 

File.txt:

line1 
line2 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...