C Program to perform file operations
In this tutorial, we are going to write a C Program to perform file operations in C Programming with practical program code and step-by-step full complete explanation. C Program to perform file operations. #include<stdio.h> #include<conio.h> void main() { file *fp,*fp1; char c; clrscr(); fp=fopen(“test.c”,’w’); printf(“nEnter the content for file1(#.end)n”); c=getchar(); while(c!=’#’) { fputc(c,fp); c=getchar(); } rewind(fp);…