CodesC/TP5/fileread.c

17 lines
184 B
C
Raw Normal View History

2021-10-21 09:49:39 +00:00
#include <stdio.h>
int main () {
float a = 1.;
int b = 1 ;
FILE *point = fopen("data.dat","r");
fscanf(point,"%f %d \n",&a,&b);
printf("%f %d \n",a,b);
fclose(point);
}