Solved

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

Posted on 2014-04-14
1
262 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 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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