Guest User

Untitled

a guest
Jun 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. if(toiminto == 2){
  2. henkilo_tiedot = fopen("Data.txt", "r");
  3. while(feof(henkilo_tiedot) == 0){
  4. fscanf(henkilo_tiedot, "%s %s %d %f\n", &etunimi[0], &sukunimi[0], &ika, &paino);
  5. printf("%s %s, %d vuotta ja %.1f kg.\n", etunimi, sukunimi, ika, paino);
  6. }
  7. fclose(henkilo_tiedot);
Add Comment
Please, Sign In to add comment