Search found 3 matches

by onper
Tue Aug 14, 2012 11:35 am
Forum: Support and Development
Topic: Reading a file
Replies: 7
Views: 2887

Re: Reading a file

Another question while I'm at it :awesome:

I'm a little experienced with Java and when you're increasing an int, you can type

Code: Select all

i++
While in lua you have to do

Code: Select all

i = i +1
is there some way to do it in lua like the java example?
by onper
Tue Aug 14, 2012 10:59 am
Forum: Support and Development
Topic: Reading a file
Replies: 7
Views: 2887

Re: Reading a file

Thanks for getting back with solutions so quickly!

It worked perfectly fine with replacing or with and, now I kind of feel stupid about that mistake...
by onper
Tue Aug 14, 2012 9:56 am
Forum: Support and Development
Topic: Reading a file
Replies: 7
Views: 2887

Reading a file

Hi! I have this small problem when reading the lines of a text document using the following code. for line in love.filesystem.lines("questions.txt") do if line ~= "" or line ~= "a" then table.insert(canvas_questions, line) end print(line) -- for debugging purposes end T...