Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Writing a newline to file doesn't work — Gideros Forum

Writing a newline to file doesn't work

incipientincipient Member
edited June 2013 in General questions
Hi All,

I'm trying to write a newline to a file...I have done this many times before on other platforms...but for some reason, this doesn't seem to be working! I

I am using

local file = io.open("P:/Gideros/Projects/test1.txt","w")

for i = 1, 10, 1 do
file:write("\n")
end

file:close()

I can write 10 "CATS" to the file, no problem....but I can't write newlines.

Thanks for any help you can provide =)

Comments

Sign In or Register to comment.