On Jan 31, 2008 3:39 PM, Nico Heinze <[EMAIL PROTECTED]> wrote:

> Nope. Text files are text files, so you can write (without huge
> effort) only from beginning to end.
>
> What you would like to do is a so-called random-access; nothing to be
> done with text files. Random-access files are _usually_ handled by
> using open() and read() and write() or fopen(..., "rb+") and the like.
> Implementing random access on text files requires huge buffering efforts.

Unless you have a specific need for dealing with random access files,
you might as well take the leap and use some kind of database
management system, even just a lightweight one like SQLIte
(http://www.sqlite.org/). It'll look better on your resume also :-)

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to