AMARANT Posted June 16, 2012 Share Posted June 16, 2012 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 Posted June 16, 2012 Share Posted June 16, 2012 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now