CodesC/TP5/filewrite.c

15 lines
218 B
C

#include <stdio.h>
int main () {
float a = 1.;
int b = 1 ;
FILE *point = fopen("data.dat","w"); // ouverture file "w" ecriture
fprintf(point,"%f %d \n",a,b); // ecriure file
fclose(point); // fermeture
}