|
-
Apr 21st, 2004, 05:37 PM
#1
Thread Starter
Lively Member
Reading In a Text File One Line At a Time
I am trying to read in one line of a text file at a time, basically, the text file will be full of numbers, but i want to read in one line at a time and display it in a text box, i can read in a full text file in one go but i dont know how to read in one line at a time, here is the code that reads in the whole text file, any help would be great, thanks....
'code:
Dim line As String
Open Filename For Input As #1
Do While Not EOF(1)
Input #1, line
Text1.Text = Text1.Text & vbCrLf & line
DoEvents
Loop
Close #1
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
|