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
#question.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 s

Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''{'' and end with '

program to write superposition of waves using class and objects

Problems With Multiple Inheritance The following example presents a problem with multiple inheritance. class Aclass  {   public :  void put()


This task involves creating a new class(es) that will allow the system to playback pattern sequences using the Neo  Freerunner  hardware. The first thing to note is that the vibrat

Write 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 two points can b


The purpose of this assignment is to familiarize you with the notion of encapsulation as well as some aspects of IP and ICMP. Write your programs in C or C++. They will be grade