This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes Split a Text File Following a Criteria. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

Split a Text File Following a Criteria.

Stanley Mungai
Ranch Hand

Joined: Dec 09, 2011
Posts: 155

HI Guys, Am asking this question For the Second time because I do not seem to Be getting a Solution I Have a large Text File Containing Customer Information in the following Format

I need to Separate the file And Store Each Customer Information In A different file. So I need TO Split The file By Customer Name. The code I currently Have Writes every line of the text file into a different file and I end up having Thousands of files. Someone Please Tel me what Mistake I am Making. Please Edit My Code;

Give a beggar a fish; feed him for a day. Teach him how to fish; Feed him for a lifetime.
Jelle Klap

Joined: Mar 10, 2008
Posts: 1949

Please do not open duplicate topics, especially if the other topic is already actively being replied to - remember that PatienceIsAVirtue.
I'm closing this one.

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
It is sorta covered in the JavaRanch Style Guide.
subject: Split a Text File Following a Criteria.
It's not a secret anymore!