Skip to content
Snippets Groups Projects
Commit e8ea0768 authored by Jaysimman  G's avatar Jaysimman G :computer:
Browse files

fcopy

parent 8663caec
No related branches found
No related tags found
No related merge requests found
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/<executable file>",
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
\ No newline at end of file
No preview for this file type
fcopy.c 0 → 100644
#include<stdio.h>
int main(){
FILE *fp1,*fp2;
fp1 = fopen("helloworld.c","r");
fp2 = fopen("overwrite.c","w");
while(1){
char c = fgetc(fp1);
if(c!=EOF){
fputc(c,fp2);
}else{
break;
}
}printf("file content copied successfully.\n");
fclose(fp1);
fclose(fp2);
}
\ No newline at end of file
#include<stdio.h>
int main()
{
printf("Hello World !");
return 0;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment