my code is trying to read data from a file. while running, program just exiting (tried debugging on that line with no result)
file format to read:
100 1234 6500.5
101 4321 75000
code:
int acc,pin;
float bal;
file = fopen("clients.txt","r");
temp=fscanf(file,"%d%*[ ]%d%*[ ]%f%*[\n]",acc,pin,bal);
Aucun commentaire:
Enregistrer un commentaire