Afficher un message
Vieux 11/12/2002, 00h07   #4 (permalink)
golem
Nouveau membre du Club
 
Date d'inscription: décembre 2002
Messages: 65
Envoyer un message via ICQ à golem Envoyer un message via MSN à golem
Par défaut

Salut,

Le fait d'ouvrir un fichier en mode texte, réinterprète le flux en supprimant certains caractères ou encore interprète un caractère spécial comme une fin de fichier (EOF):

Citation:
t Open in text (translated) mode. In this mode, CTRL+Z is interpreted as an end-of-file character on input. In files opened for reading/writing with "a+", fopen checks for a CTRL+Z at the end of the file and removes it, if possible. (...)

Also, in text mode, carriage return–linefeed combinations are translated into single linefeeds on input, and linefeed characters are translated to carriage return–linefeed combinations on output. (...)

b Open in binary (untranslated) mode; translations involving carriage-return and linefeed characters are suppressed.
(extrait de la doc VC++ 5.0).
golem est déconnecté   Envoyer un message privé Réponse avec citation