|
-
Jul 13th, 2003, 12:09 AM
#1
Thread Starter
New Member
Allocating variables to a sequential txt file
First few days using VB.NET
In VB5 I used the following routine to put values into variables A,b,c,d
Open “C:\TextFiles\File.txt” For Input As #1
For I = 1 To 13
Input #1, A, b, c, d
If A = Text1.Text Then I = 5
Next I
Close #1
Where File.txt :-
1, 23,45,44
2,34,55,72
3,21,15,88
4,9,13,67
5,10,7,28
I can get the file information into VB.NET but cannot discover how to assign the variables.
"Input" only seems able to input single items.
Can anyone help?
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
|