Commit 70d68a76 by Sergey.Kolodchenko

Upload New File

parent 5cb06118
Showing with 24 additions and 0 deletions
#include <stdio.h>
#include <stdlib.h>
int main(void){
FILE*fileTesting = fopen("Fuktsion.txt","r");
if(fileTesting ==NULL){
printf("Tere tulemast");
exit(0);
}
int ages[6];
char name [6][54];
char email [6][54];
int i;
for(i=0;i<6;i++){
fscanf( fileTesting, "%d %s %s", &ages[i],name[i],email[i]);
}
for(i=0;i<6;i++){
printf( "%d %s %s", ages[i],name[i],email[i]);
}
fclose(fileTesting);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment