delete first line in a file

Fredrik Lundh fredrik at pythonware.com
Fri Jun 30 07:30:28 EDT 2006


Juergen Huber wrote:

>> start here:
>>
>> http://docs.python.org/tut/node9.html#SECTION009200000000000000000
>
> that documentation i have already read, but it wouldn`t help me for my
> problem!

that documentation and a little experimentation should be all you need.

> i know, how i can read the first line an print them on the screen!
> but...how can i say python, delete the first line?!
> thats my problem!

read the first line, and ignore it.

then read all the other lines, and write them to a new file.

</F> 






More information about the Python-list mailing list