|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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) |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 2007-10-15 09:44, for.fun@laposte.net wrote:
> 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. I can see only two reasons for you program to crash, either you have a bad implementation of the standard library (which I do not find very likely unless you run on some very obscure platform) or your code is bad, in which case another library will not you. -- Erik Wikström |
|
![]() |
| Outils de la discussion | |
|
|