How do you write multiple lines to a file?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

How do you write multiple lines to a file?

Post by Lua Hal »

The wiki just says how to write one line.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: How do you write multiple lines to a file?

Post by Kadoba »

Write one line multiple times? :crazy:

Where exactly in the wiki are you referring to?
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: How do you write multiple lines to a file?

Post by Lua Hal »

Kadoba wrote:Write one line multiple times? :crazy:

Where exactly in the wiki are you referring to?
http://love2d.org/wiki/love.filesystem.write

It's just a string.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: How do you write multiple lines to a file?

Post by TechnoCat »

A line break in strings is written as '\n'.
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: How do you write multiple lines to a file?

Post by Lua Hal »

TechnoCat wrote:A line break in strings is written as '\n'.
Thanks!
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 47 guests