| View previous topic :: View next topic |
| Author |
Message |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Thu Jan 05, 2006 7:18 am Post subject: io.lines error |
|
|
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 |
|
| Back to top |
|
 |
romero126
Joined: 24 Dec 2005 Posts: 200
|
Posted: Thu Jan 05, 2006 7:41 am Post subject: |
|
|
Sometimes its best to make a variable = io.lines(file)
before passing it into a loop. |
|
| Back to top |
|
 |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Fri Jan 06, 2006 2:46 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Fri Jan 06, 2006 1:50 pm Post subject: |
|
|
| Try ms0:/psp/music/m3utest.txt |
|
| Back to top |
|
 |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Fri Jan 06, 2006 6:47 pm Post subject: |
|
|
my stupidity is endless. Sorry to all to have made such a racket. _________________ Behold! The Underminer got hold of a PSP |
|
| Back to top |
|
 |
|