change first line of a file in python
<p>I only need to read the first line of a huge file and change it.</p>

<p>Is there a trick to only change the first line of a file and save it as another file using Python? All my code is done in python and would help me to keep consistency.</p>

<p>The idea is to not have to read and then write the whole file.</p>
