[python-win32] Modify only the first line of a big file (Roughly 1.5MB - For thousands of file).

2009-05-03 Thread Khalid Moulfi
Hi all, I have thousands of file and I must update only the first line. My concern is : is it possible to read only the first line for each of these files and update the first line only without reading the file completely ? Version of Python is 2.2.1 Thanks for any help, KM

Re: [python-win32] Modify only the first line of a big file (Roughly 1.5MB - For thousands of file).

2009-05-03 Thread Robert
Khalid Moulfi wrote: Hi all, I have thousands of file and I must update only the first line. My concern is : is it possible to read only the first line for each of these files and update the first line only without reading the file completely ? Version of Python is 2.2.1 Thanks for any

Re: [python-win32] Modify only the first line of a big file (Roughly 1.5MB - For thousands of file).

2009-05-03 Thread Gerdus van Zyl
It seems it's not possible if as mentioned you aren't replacing a line with a line of the same lenght/bytes. You then have to resort to using intermediate files see: http://python.pastebin.com/f539b4e46 On Sun, May 3, 2009 at 1:01 PM, Robert kxrobe...@googlemail.com wrote: Khalid Moulfi wrote:

[python-win32] Python Windows MSI installs now fails with error 2755...

2009-05-03 Thread J. Marc Edwards
I am a new Python user. I was experimenting with a variety of Python versions on Windows XP, e.g. 2.6.2, 3.0.1, ActiveState 2.6.2/3.0.1, etc. I then also wanted to start using iPython, which I also installed on my Windows XP system. I am also an emacs user, so I was trying to get the