PC Review


Reply
Thread Tools Rate Thread

Copy lines of a text file to an array

 
 
Jeroen
Guest
Posts: n/a
 
      6th Aug 2004
Hi,

I am trying to get the lines of a text file into an array. Can anyone help
me with some code to do this in VB.net?

Greetings,
Jeroen


 
Reply With Quote
 
 
 
 
Jeff Johnson [MVP: VB]
Guest
Posts: n/a
 
      6th Aug 2004

"Jeroen" <(E-Mail Removed)> wrote in message
news:cf0spu$re1$(E-Mail Removed)...

> I am trying to get the lines of a text file into an array. Can anyone help
> me with some code to do this in VB.net?


Look at the Split method of the String class. Your delimiter will be CR/LF.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put lines with certain text (from a file) in an array Varun Microsoft Excel Programming 15 10th Mar 2009 07:27 PM
How do I Remove lines above a key word, remove the lines below another, and keep the lines between the to key words in a Text File? Quentin Microsoft VB .NET 2 20th Apr 2007 07:34 PM
text box insert in Excel - text box lines print on second copy =?Utf-8?B?RGlhbmEgKEJlcnJ5ICYgQ28p?= Microsoft Excel Misc 0 26th Jul 2006 04:39 AM
Text files - Copy "interesting" lines into another file eliu Freeware 5 7th Sep 2005 10:42 PM
excel97 vba to append lines to text file overwriting last 2 lines Paul Microsoft Excel Programming 1 6th Nov 2004 08:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:24 AM.