Manipulate file in Windows
Dublanc, David
ddublanc at free.fr
Thu May 31 16:53:01 EDT 2001
Hello,
I have to manipulate big text files (more than 100 M ) on Windows and Unix.
I have several questions :
How can I count lines fastly ? ( wc -l in Unix...)
When I have the total number of lines, I have to split the file into x files
of 1000 lines. How can I do this fastly ?
Are there functions to replace x lines of a file by y another lines ? To
delete the x to y lines in a file ?
In brief, I am looking for useful file functions that I cannot find in the
Library reference....
Thanks.
--
David
More information about the Python-list
mailing list