Text files read multiple files into single file, and then recreate the multiple files
Mike Meyer
mwm at mired.org
Sat Feb 12 22:33:40 EST 2005
googlinggoogler at hotmail.com writes:
> Would like to use text files, its really for my own learning,
>
> but I suppose a Zip would work
How about outputing a file as:
LENGTH=######
<file-contents>
in your joined file? That's a minimalistic archive format - one ASCII
header line that provides just enough information to extract the
file. Be sure to open all files [rw]b, though.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list