Books Database
Eliran Gonen
eg at rootshell.be
Thu Mar 6 11:07:40 EST 2003
Alex Martelli <aleaxit at yahoo.com>:
> NAH! Why do so much work?! Just read the db into
> memory, remove whatever you want from the db
> _variable_, and overwrite as above. At 30KB file size,
> or even quite a bit more, that will be lightning-fast.
Nope. I meant, let say I have a file:
1|2|3|4
2|3|4|5
a|b|c|d
d|b|a|c
and the user want to remove line 3 (a|b|c|d).
So in my curses application he enters '3' and then
I need to remove line 3. I can not know how many characters
are there so I have to count \n's
More information about the Python-list
mailing list