|
-
Jul 13th, 2001, 12:25 PM
#1
Thread Starter
Member
Reading A File Into Listbox
How do I read a file into a listbox? I am making a playlist creater in my application. But im not sure how to read the *.m3u file into listbox. ***note: it reads just like a *.txt file...any idea's how?
Also, is there a way retrieve your online buddys through an API from AOL Instant Messenger or send IM's through API???
Thanx People!
-
Jul 13th, 2001, 01:47 PM
#2
Member
I have no idea about the AOL thing. But for the first, just go line by line (Print #1, MyString) and add into the listbox (lstBox.AddElement MyString).
-
Jul 13th, 2001, 03:01 PM
#3
PowerPoster
Try this:
VB Code:
Dim intFileNo As Long
Dim strLine As String
intFileNo = FreeFile
Open "c:\mp3.txt" For Input As #intFileNo
Do While Not EOF(intFileNo)
Line Input #intFileNo, strLine
List1.AddItem strLine
Loop
This assumes each filename is on a different line...e.g;
Sound1.mp3
Sound2.mp3
Sound3.mp3
....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|