File Handling Programs
File Handling Programs
int main(void)
{
FILE *f ileptr1, *fileptr2;
char filechar[40];
char c;
int delete_line, temp = 1;
int main()
{
FILE *fileptr;
int count_lines = 0;
char filechar[40], chr;
int main(void)
{
DIR *d;
struct dirent *dir;
d = opendir(".");
if (d)
{
while ( (dir = readdir(d)) != NULL)
{
printf("%s\n", dir->d_name);
}
closedir(d);
}
return(0);
}
8. /* C Program to Find the Size of File using File Handling Function*/
#include <stdio.h>
9.