RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums

Newbie Help

Join Date: Aug 2005
Posts: 18
Reputation: Sharpy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Sharpy Sharpy is offline Offline
Newbie Poster

Re: Newbie Help

  #2  
Aug 8th, 2005
I have this code so far

Private Sub lstteams_Click()
Dim FF As Long
Dim LineOfText As String
FF = FreeFile
Open "C:\Documents and Settings\Me\Desktop\New Folder\stats.txt" For Input As #FF
Do While Not EOF(FF)
Line Input #FF, LineOfText

If Len(LineOfText) Then List1.AddItem LineOfText
Loop
Close #FF
End Sub



Now what I want is, I want to click the next object in the listbox and clear the stats.txt file and have like another file come up instead like stats2.txt ect.. Please help me
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 8:34 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC