io.lines error

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

io.lines error

Post by the underminer »

File = "ms0:\psp\music\m3utest.txt"
for line in io.lines(File) do

error: bad argument #1 to 'lines' (invalid argument)

The weird thing here is that the luaplayer version for windows doesn't give this error. Was this not implented in the psp version?
Behold! The Underminer got hold of a PSP
romero126
Posts: 200
Joined: Sat Dec 24, 2005 2:42 pm

Post by romero126 »

Sometimes its best to make a variable = io.lines(file)
before passing it into a loop.
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

Post by the underminer »

File = "D:\psp\music\m3utest.txt"
lines = io.lines(File)
for line in lines do

This doesn't work either. The same problem. This function is the core of my app, so I really need some help here.
Behold! The Underminer got hold of a PSP
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

Try ms0:/psp/music/m3utest.txt
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

Post by the underminer »

my stupidity is endless. Sorry to all to have made such a racket.
Behold! The Underminer got hold of a PSP
Post Reply