Teddy Rogers Posted June 10, 2006 Share Posted June 10, 2006 Does anyone know if there is a file splitter out there that will split text files near to a specified file size and be able to do it after a line break? Meaning that it will not split the file halfway through a sentence or text line...Ted. Link to comment Share on other sites More sharing options...
C0dEStRiP Posted June 11, 2006 Share Posted June 11, 2006 (edited) Quick search came up with:I was working on a much larger project when I realized I needed to make a huge text file smaller so I could load it into notepad easier, and still retain the the main format of the file.I couldn't use a file splitter because it splits the file based on File size, and they tend to split the file in the middle of lines, and not at the end of the line.So I went about writing a tiny application that will take a text file and split the file line by line until the number of lines in the new file is the size the user wants.I have just made a slight modification 4/8/2005 that now allows the user to choose if they wish to split the file up by a certain number of lines or a cetain number of files. If the user chooses to split the file by a certain number of files the program will create the number of files with equal amouts of lineshttp://www.codeproject.com/Purgatory/TextFileSplitter.aspSource - http://www.codeproject.com/Purgatory/TextF...plitter_src.zip Edited June 11, 2006 by C0dEStRiP Link to comment Share on other sites More sharing options...
Teddy Rogers Posted June 11, 2006 Author Share Posted June 11, 2006 Thanks for this, it is exactly what I was looking for. It works perfectly! Ted. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now