C program to copy the contents of a file, C/C++ Programming

C Program to copy the contents of a file:

void main()

   {

  ifstream fin("input.txt");

  ofstream fout("output.txt");

  char ch;

  while (fin)

      {

    fin>>ch;

    fout<

      }

    fin.close();

    fout.close();

   }

Posted Date: 10/19/2012 5:34:54 AM | Location : United States







Related Discussions:- C program to copy the contents of a file, Assignment Help, Ask Question on C program to copy the contents of a file, Get Answer, Expert's Help, C program to copy the contents of a file Discussions

Write discussion on C program to copy the contents of a file
Your posts are moderated
Related Questions
I''m having trouble with my C code to red from a Hash table. Not sure what it is I''m doing wrong and stumped. I need to get it figured out by tomorrow at 4:00 p.m. Eastern time. C

Q: Can I overload operator == so it allow me compare two char[] by a string comparison? A: No: at least one operand of particular overloaded operator should be of some user-defi

1. The shell must support the following internal commands: i. cd - Change the current default directory to . If the argument is not present, report the current directory. If t

#A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of

Write an algorithm to print all even numbers in descending order and draw the flowchart.

Write a program to create a binary file and store the following data "hello", 0x0030,'1', 1.234  Using visual studio examine the binary file and note how the day is stored   Answe

replace character into string and return value of string that are replaced

C Program for FUNCTION OF MERGE #include conio.h> #include stdio.h> char cot(char a[],char b[]); void main() {           char a[50],b[50];           clrscr()

#include stdio.h> #include conio.h> #include string.h>   void main() {           char a[50],b[25][25],l[25],temp1;           int i=0,j=0,k=0,l1[25],c=0,c1=0,t=

a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between tw