Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void print_lines() {
- FILE* fp = fopen("FLORLAND.txt", "r");
- int month;
- int day;
- int year;
- int temperature;
- while (fscanf(fp, " %d %d %d %d\n", &month, &day, &year, &temperature) != EOF) {
- printf("%d/%d/%d: %d\n", month, day, year, temperature);
- }
- fclose(fp);
- }
Add Comment
Please, Sign In to add comment