Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Formatting plain text

Status
Not open for further replies.

kabluzy

Mechanical
Feb 10, 2003
16
0
0
TT
Hi. I have some data in a text file, and I need some help to format it. The data is not split into lines, but is deliminated by semi-colons. I need to split it into lines after each semi-colon, then read each value so that I can use it in a program.

eg. 123 f507 287; e23 234 453; 453 543 d34; 453 345 345;

If I split the data into lines, it may generate over 5000 lines of code. Any example codes are apprciated.

Cheers,
 
Replies continue below

Recommended for you

Use the split function
Dim MyData() as string
MyData=Split(YourData,";")
Then each element of MyData contains a value
eg
For i = 0 to ubound(MyData)
'do your stuff with MyData(i)
next
 
Status
Not open for further replies.
Back
Top