File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 1951

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.
I agree. Here's the link:
subject: Split a Text File Following a Criteria.
jQuery in Action, 3rd edition