Professional Documents
Culture Documents
fpp = fopen("file2.txt","w");
fprintf(fpp, "Learn C programming at VIT\n");
fprintf(fpp, "Working with files and directories.");
fclose(fpp);
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *sourceFile1,*sourceFile2, *destFile;
char sourcePath1[100],sourcePath2[100],destPath[100];
char ch;
/*
* Open source files in 'r' and
* destination file in 'w' mode
*/
sourceFile1 = fopen(sourcePath1, "r");
sourceFile2 = fopen(sourcePath2, "r");
destFile = fopen(destPath, "w");
exit(EXIT_FAILURE);
}
return 0;
}