File processing

Chris McMillan christopherjmcmillan at eaton.com
Mon Jul 9 17:01:29 EDT 2001


Hello all!

I'm trying to write a script that will open a file, delete the first line,
and then save the file with the same name.  Can someone please point me in
the right direction?  Thanks!

Why am I doing this you may ask: I have tens of data files that I need to
strip the first line before I can process it in Matlab.  So, I dream of a
script that opens every file in a directory, deletes the first line, .....

Thanks,

Chris





More information about the Python-list mailing list