Ver Mensaje Individual
  #8 (permalink)  
Antiguo 07/11/2005, 02:12
Avatar de Eternal Idol
Eternal Idol
 
Fecha de Ingreso: mayo-2004
Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años, 9 meses
Puntos: 74
MSDN:
"When a file is opened with the "a" or "a+" access type, all write operations occur at the end of the file. The file pointer can be repositioned using fseek or rewind, but is always moved back to the end of the file before any write operation is carried out. Thus, existing data cannot be overwritten."

Tenes que abrirlo con r+ si el archivo ya existe y sino con w+.

"r+"
Opens for both reading and writing. (The file must exist.)
"w+"
Opens an empty file for both reading and writing. If the given file exists, its contents are destroyed.

Lo de Turbo C++ lo digo por un par de razones, primero y principal es un compilador de 16 bits para MS-DOS y segundo, y no menos importante, es Borland una empresa que segun mi experiencia personal se caracteriza por desarrollar productos de baja calidad.
__________________
¡Peron cumple, Evita dignifica! VIVA PERON CARAJO