That has several downsides. One is that each time you add a single key, you have to write the whole data file.
Another is that you have to deal with concurrent accesses yourself.
And a third is that your data is lost if the program is killed while writing the file. D'oh.
Better to use a ready-made, battle-tested solution like sqlite (or maybe berkeleydb) which deals with these problems for you.
In reply to Re^5: Algoritm for converting string to number?
by moritz
in thread Algoritm for converting string to number?
by DreamT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |