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
Q: however shouldn't I always use a printOn() method instead of a friend function? A: No. The usual cause people wish to always use a printOn() method instead of  a friend fu

Object Initialization An object of a derived class can be initialized to an object of a base class. If both the classes have similar data members, then no specific constructor

A: This is a name that acts as an alias, or alternative name, for a beforehand defined variable or an object. prepending variable along with "&" symbol makes it as reference. fo

: Write a program that prompts the user to enter five digit positive numbers. The program then outputs the digits of the number one digit per line. Eg if the user enters 32456, th

Write a program to compute the following equation for values of time.           y = 2x+3   The values of time are stored in the file program.dat and the solution should be display

I am seeking an expert to create a 360 degree virtual tour in KRPano for use on PCs, tablets and smartphones. You will be given with panoramas in order to create an advanced KRPano

Write a function that has two int parameters num and n, and returns TRUE when the nth bit in num is 1, otherwise FALSE. This function should use the function in the above problem.

A: A smart pointer is a C++ class which mimics a regular pointer in syntax and some semantics, however it does more. Since smart pointers to distinct types of objects tend to have

One person who is specialist at programming and solving problems with a computer Project Description: Potential computer, hardware, programming and software genius, I look

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