answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

int main(int x,char *a[])

{

FILE *fp1,*fp2;

fp1=fopen("input.txt","r");

fp2=fopen("output.txt","w");

while(!(feof(fp1)))

{

fputc(fgetc(fp1),fp2);

}

fclose(fp1);

fclose(fp2);

return 0;

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

The program to copy content on one file to another depends with the platform that you are using.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to copy the contents of one file to another?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you copy the contents of a youtube playlist into another?

A new web tool called Copy YouTube Playlists will show you how to copy the contents of a YouTube playlist into another.


Write a program to implement the various operations on string such as length of string concatenation reverse of a string copy of a string to another in VB?

what is string


How do you write a java program to find the transpose of the matrix for the given elements?

You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.


C program plus copy of string to another?

strcpy


How do you copy music files to a memory card from a memory stick that is write protected?

The fact that the memory stick is write protected will not prevent you "reading" the contents. Thus there is no problem in making the copy from the stick to the memory card.


Is fill handle used to copy contents in Excel?

A fill handle can copy anything and in different ways. It can copy contents and it can copy formulas and it can create fill series.


Write a c program to copy two strings using pointers?

nahi malum


How do you copy from computer to disc in windows xp?

The best way to copy files from a computer to a disc is to write the same. Use a burning program to write the disc with the files that you want.


How do you copy the contents of a movie DVD?

You can use E.M. Free DVD Copy to copy the contents of the movie DVD, following the steps shown in the Related Links.


What is the extra copy of a program or document?

Get file from another computer, across a network


What is a copy cell in Excel?

When you copy a cell, you copy the contents of the cell. Excel allows you to paste those contents in a variety of ways. For example, you can paste either the cell contents (like a formula =A1+B3) or the cell value (like 143).


How do you copy contents of pdf to word?

The contents of a PDF file can simply be copied and pasted into a blank word template. Be sure to highlight the PDF documents entire contents, copy, then paste into word,