PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > Re: Looking for a C++ file manipulation API (find, cut, paste ...)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Looking for a C++ file manipulation API (find, cut, paste ...)

Réponse
 
LinkBack Outils de la discussion
Vieux 15/10/2007, 08h44   #1
for.fun@laposte.net
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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)


  Réponse avec citation
Vieux 15/10/2007, 10h38   #2
Erik Wikström
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Looking for a C++ file manipulation API (find, cut, paste ...)

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h41.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10128 seconds with 10 queries