File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

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
Bartender

Joined: Mar 10, 2008
Posts: 1753
    
    7

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: http://aspose.com/file-tools
 
subject: Split a Text File Following a Criteria.
 
Similar Threads
Split a File According to a String in the File
Code generation help
Problem in copying JAR file
problem with writing file , please help
decimal format