Page 1 of 1

Split a large text file into parts?

Posted: Fri Oct 21, 2011 5:03 pm
by klopjob
I'm a complete textpad newbie. I also have extremely little experience with programming. Right now I have a big text file with +4 million lines, the program I'm using to process the information in this file cannot handle files this big. Is there a way to split the file into say 2 or 3 parts and save them to separate files? A macro, perhaps?

Another (not so good) option for me would be to remove all lines from 2m to 4m and keep the first half of the file, is there an easy way to do this?

Posted: Fri Oct 21, 2011 9:21 pm
by ak47wong
Not using TextPad, but there are a number of utilities available for splitting files, such as HJSplit, Chainsaw, FFSJ and GSplit.

Posted: Fri Nov 11, 2011 4:05 am
by leegold
Another option is to search the web for a program to process the file that CAN handle huge files.

I don't know what kind of thing you're doing but usually you can find the right tool if you look around.