|
-
May 12th, 2003, 11:14 PM
#1
Thread Starter
New Member
loading txt file to a matrix
The dimensions of my matrix are 4, 3. I want to input a text file into a listbox. Contents of the text file are:
4
3
1
2
3
4
5
6
7
8
9
10
11
12
I need the 1 thru 12 to display in the list box like this:
1 2 3
4 5 6
7 8 9
10 11 12
The 4 & 3 simply represent my rows and columns.
The code has to be so I can easily change the array size.
Here is my code so far:
dim a(4,3) as integer
dim row as integer
dim col as integer
open "a:\matrix.txt" for input as #10
do until eof (10)
can somebody please show me how to do this? My instructor is being a dick. Won't show us how to do this and no one can figure it out.
PLEASE 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
|