Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET VB.NET
How to read text Delimited file
Posted 6-Dec-12 13:14pm
Edited 25-Dec-12 7:14am
Adam R Harris at 6-Dec-12 18:27pm
Delete that entire sample right now, I'm sure your clients would be pissed right off to know you just posted their private information on a public website. Then take a small subset of your sample and replace the real world values with fictitious values so you don't violate any privacy laws.
After that loom at the StreamReader class and String.Split method
DinoRondelly at 6-Dec-12 18:29pm
Good point and it looks like the Bank of India no less !!
vikram5412 at 8-Dec-12 9:05am
these are demo clients.
DinoRondelly at 6-Dec-12 18:28pm
Reading the file is easy
Reading the file
using (StreamReader sr = new StreamReader("YOURFILE"))
//Do what you want
ThatsAlok at 6-Dec-12 21:36pm
You might require custom parser for it... i could provide that service for charge :-) .. you need to parse the file, since being in banking domain, i can recommend you need to check incoming data for you your customized parser for example you might need to check header line for you incoming data, since it's for account balance report, it would be a contant format at header and only data would be changing. so you have read each line for possible custom scenario

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

vikram5412 at 9-Dec-12 10:42am
Can read this file, but i need to read this file to read in grid view.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 195
3 DamithSL 195
4 Richard MacCutchan 178
0 OriginalGriff 5,130
1 DamithSL 4,197
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821

Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 25 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100