Need help on Python File write operation.....

2008-07-02 Thread Devil
Hi, I am stuck at below mention point. I am not able to find any way of doing it in python. I have google enough to find any sample code but unsuccessful. Plz help. I am trying to write a file of size (user specified size) so that it will pops(remove) the oldest line written (data item) to make r

File parser

2005-08-29 Thread Angelic Devil
I'm building a file parser but I have a problem I'm not sure how to solve. The files this will parse have the potential to be huge (multiple GBs). There are distinct sections of the file that I want to read into separate dictionaries to perform different operations on. Each section has specific

Re: File parser

2005-08-30 Thread Angelic Devil
"Rune Strand" <[EMAIL PROTECTED]> writes: Thanks. This shows definate promise. I've already tailored it for what I need, and it appears to be working. -- "Society in every state is a blessing, but Government, even in its best state, is but a necessary evil; in its worst state, an intolerable

Record separator for readlines()

2005-09-02 Thread Angelic Devil
I know this has been asked before (I already consulted the Google Groups archive), but I have not seen a definative answer. Is there a way to change the record separator in readlines()? The documentation does not mention any way to do this. I know way back in 1998, Guido said he would consider