|
-
Nov 29th, 2000, 06:19 AM
#1
Thread Starter
Member
How do i alter this code to read the entire txt fileinto my text box without going through each Line input command.
Is there a do EOF for this sort of thing?
Dim intFile As Integer
Dim strText As String
'String Loader
intFile = FreeFile
Open "C:\Test.txt" For Input As #intFile
Line Input #1, strText ' Get text from line 1
Text1.Text = strText
Line Input #1, strText
text2.Text = strText ' Get text from line 2
' repeat process for 3rd line 4th and so on...
Close intFile
Any tips as always are appreciated.
M.
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
|