Search found 3 matches
- Sun Mar 20, 2011 7:21 am
- Forum: Support and Development
- Topic: Can't start new lines with love.filesystem?
- Replies: 13
- Views: 4865
Re: Can't start new lines with love.filesystem?
You're both wrong and right. It depends on the editor you open it in. Notepad needs \r\n, but wordpad for example works with just \n as well. Ooooooh, alright. That makes a bit more sense now. Was pulling my hair out over something so simple. I code in Notepad++, but I open random txt files in note...
- Fri Mar 18, 2011 10:01 pm
- Forum: Support and Development
- Topic: Can't start new lines with love.filesystem?
- Replies: 13
- Views: 4865
Re: Can't start new lines with love.filesystem?
Okay, I KNEW it was something stupidly easy like that. I'm totally new to LUA this week, so I've never even seen \r before. Thank you.
- Fri Mar 18, 2011 9:54 pm
- Forum: Support and Development
- Topic: Can't start new lines with love.filesystem?
- Replies: 13
- Views: 4865
Can't start new lines with love.filesystem?
Okay, this has been really bugging me for like an hour now. file = love.filesystem.newFile("test.txt") file:open('a') stringy = "" stringy = stringy.."one\n" stringy = stringy.."\ntwo" stringy = stringy.."three" stringy = stringy.."\n" stri...