Joining Big Files
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Sat Aug 25 06:21:20 EDT 2007
On Sat, 25 Aug 2007 02:57:24 -0700, mosscliffe wrote:
> I have 4 text files each approx 50mb.
>
> I need to join these into one large text file.
>
> I only need to do this very occasionally, as the problem has occurred
> because of upload limitations.
>
> Bearing in mind filesize and memory useage, would I be better reading
> every line in every file and writing each line to the output file or
> is there someway I could execute some shell command.
There are some copy functions that work with file like objects in the
`shutil` module.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list