Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read a 3column table from an ASCII text to 2D array 1

Status
Not open for further replies.

ijr

Technical User
Apr 4, 2001
24
TR
Dear Pals

There is a FAQ in this forum related to this issue,related to Visual Basic, but it doesnt adress my problem, because it reads data in one line as one text or one value. My problem is to read discrete data in one line as discrete values.

Consider this in a simple Notepad text file(ASCII)

1 2 3
4 5 6
7 8 9

ie 3 lines in 3 columns, there is 3 data per line.
How can I read each data separate from the other and say for example A(1)=1; A(2)=2; A(3)=3 etc

A simple line of code will do.
 
Just look for the Split() function - does just what you want, and is covered in this forum and in VBHelp!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top