File processing

Chris McMillan christopherjmcmillan at eaton.com
Tue Jul 10 10:34:35 EDT 2001


Thank you everyone for your imput!!  On a side note:  I would have loved to
use bash, sed, etc, but unfortunately I'm forced to use a Windows NT
machine.  I just thought this might be an excellent python exercise since
I'm in the process of learning it.

Thanks again,

Chris


Chris McMillan wrote in message <9id5p9$8r62 at interserv.etn.com>...
>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