Re: Looking for a C++ file manipulation API (find, cut, paste ...)
On 13 oct, 06:58, "Christopher Pisz" <some...@somewhere.net> wrote:
> File API...lol.
> The features you requested are part of the standard library, use it as your
> "API". I don't see how it could possibly get any simpler than using
> std::fstream and std::string. Each of those tasks is a matter of a few
> lines. Your instructor probably has more information on how to use these
> two.
I already works with string and fstream.
The reason why I was asking on the forum is it is not robust enough
for me.
Actually, if my app crashes in a string call (in memory), I lose the
information.
Of course, I could flush the file stream as much as I can but it would
dramatically decrease the performance.
I am sure a good compromise can be found between robustness and
performance : I need to implement something in order to do this.
Before doing the things myselfs, I wanted to know if someone already
did that kind of thing (after all, file access is a very common thing
and many people require reliability)
|