forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

io.lines error

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Thu Jan 05, 2006 7:18 am    Post subject: io.lines error Reply with quote

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
View user's profile Send private message
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Thu Jan 05, 2006 7:41 am    Post subject: Reply with quote

Sometimes its best to make a variable = io.lines(file)
before passing it into a loop.
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Fri Jan 06, 2006 2:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Fri Jan 06, 2006 1:50 pm    Post subject: Reply with quote

Try ms0:/psp/music/m3utest.txt
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Fri Jan 06, 2006 6:47 pm    Post subject: Reply with quote

my stupidity is endless. Sorry to all to have made such a racket.
_________________
Behold! The Underminer got hold of a PSP
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group