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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String into array, line by line into individual array elements

Status
Not open for further replies.

hazzas

Technical User
Aug 9, 2008
1
I'm in need of a bit help please anyone.

how can i read an external text file line by line and place its content into an individual array element. I cannot seem to achieve what i want with a script i found at the link below, as it uses a split command:

The content of the TextFile :

lineA
lineB
lineC

Array should receive:

0 - lineA
1 - lineB
2 - lineC
 
yourArray = Split(yourTextStream.ReadAll,vbCrLf)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top