Split a large text file into parts?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
klopjob
Posts: 1
Joined: Fri Oct 21, 2011 4:49 pm

Split a large text file into parts?

Post 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?
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Not using TextPad, but there are a number of utilities available for splitting files, such as HJSplit, Chainsaw, FFSJ and GSplit.
leegold
Posts: 65
Joined: Sat May 03, 2003 1:16 am
Location: USA

Post 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.
Post Reply