Solved

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

Posted on 2014-04-14
1
256 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
1 Comment
 
LVL 13

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now