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
how to define the structures

brief note on multiple stack

Please use C or C++ to write your programs. Our homework will focus on SUN sparc machines because to exploit x86 stack-overflow is too easy. This is not just a programming assignme

Question: (a) Explain a linked list. (b) Describe the three different types of linked list with the help of diagrams. (c) Give two advantages and two disadvantages

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

exemples of many to many

Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.

# Dear I want help to programmer that write C++ code for my small project as soon as posible If we can help me?..

Problem : (a) Stacks can be implemented using arrays. Write down the following C or C++ function to (i) create a stack (ii) add an element to a stack (push). (b) Expl

Insert values in queue - C++ program: Write a program to insert values in queue. int main()   {         int k;     Queue timeLine;     cout     for(