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

Program is to read the contents of a file:

void main()

   {

  ifstream fin("ascii.txt");

  char ch;

  while(! fin.eof())

    {

  fin>>ch;

  cout<

    }

  fin.close();

  }

 

 

Posted Date: 10/19/2012 5:38:22 AM | Location : United States







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

Write discussion on C program to read the contents of a file
Your posts are moderated
Related Questions
A: Use operator overloading to present a friend right-shift operator, operator>>. It is similar to the output operator, except the parameter doesn't contain a const: "Fred&" instea


Program is to store all ASCII char into a file: void main()     {   ofstream  fout("ascii.txt");   int i,n=256;   for(i=1;i     {     fout     }

I need to include files so you can understand easier.

Write a program that displays both the lower case and upper case alphabetical letters using the following Format Lowercase        Uppercase a                        A

Aim: To implement a program for dynamic data structure(linked list). Code:                       class node {             int data;             node *next;


What is default constructor? explain it.

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

Write a program called OddEven that will prompt the user for an integer and print/display a message indicating whether it is even or odd. Continue prompting for numbers from the us