Write a C program which reads each line of a file and displays
the line.
The file consists of several rows.
E.g. The content of this file could be like :
After reading the file, print them line by line.
N.B. Names will be less than 20 characters long.
For example:
code
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
int main(void){
char filename[10];
scanf("%s",filename);
//Type your code
return 0;
}
Write a C program which reads each line of a file and displays the line. The file consists of several rows. E.g. The con
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a C program which reads each line of a file and displays the line. The file consists of several rows. E.g. The con
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!