Jump to content
Tuts 4 You

Looking For A File Splitter...


Teddy Rogers

Recommended Posts

Teddy Rogers

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

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 lines

http://www.codeproject.com/Purgatory/TextFileSplitter.asp

Source - http://www.codeproject.com/Purgatory/TextF...plitter_src.zip

Edited by C0dEStRiP
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...