Solved

want to read the text file and store into the list.

Posted on 2014-04-14
1
268 Views
Last Modified: 2014-05-16
Hi experts,

I have text file like this. I want to read the file and store it into a List.

Guids         TrxDate      RefNo.
2343325    11-MAY-11    2893423POIU            
2895321    15-JUN-12    2144423WERT
2663920    10-AUG-05    2123602Y6OU
2353969    19-JAN-10    75663423TER
2569921    18-FEB-09    2123423WYUX
2309821    10-MAY-13    2999999RWRX
0
Comment
Question by:Tapan Pattanaik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
frankhelk earned 500 total points
ID: 39998787
For code to read a file line by line, see i.e. here.

To separate the context of the lines themselves, you might use Split() (see here. Be sure to fix (if needed) double separator occurence (i.e. by applying Replace() repeatedly, see here) to ensure that the data is separated correctly.

Have fun :-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question