C Files Examples - Programiz
https://www.programiz.com/c-programming/c-file-examples
WEB1. C program to read name and marks of n number of students and store them in a file. #include <stdio.h> int main() { char name[50]; int marks, i, num; printf("Enter number of students: "); scanf("%d", &num); FILE *fptr; fptr = (fopen("C:\\student.txt", "w")); if(fptr == NULL) { printf("Error!"); exit(1); } for(i = 0; i < num; ++i) {
DA: 96 PA: 97 MOZ Rank: 52 Up or Down: Up