moin,
ich möchte in eine datei schreiben, ohne das der inhalt überschrieben wird meine aktuelle version:
for(int i=1;i<=a;i++){
FILE *datei;
datei = fopen ("teilnehmer.txt", "w");
if (datei != NULL)
{
fprintf (datei, "%s;%s;%f\n", name ,boot[i],yards[i]);
fclose (datei);
}
}
dabei wird aber leider der inhalt immer wieder überschrieben...
ich hoffe ihr könnt mir helfen
gruß
ich möchte in eine datei schreiben, ohne das der inhalt überschrieben wird meine aktuelle version:
for(int i=1;i<=a;i++){
FILE *datei;
datei = fopen ("teilnehmer.txt", "w");
if (datei != NULL)
{
fprintf (datei, "%s;%s;%f\n", name ,boot[i],yards[i]);
fclose (datei);
}
}
dabei wird aber leider der inhalt immer wieder überschrieben...
ich hoffe ihr könnt mir helfen
gruß
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von casio ()