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
find the area of a curve y=f(x) between x=a and x=b integrate f(x) between limits a and b   #include float start_point, /* GLOBAL VARIABLES */

electricity biil code

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 problem description. The order of the C Program should be as follows: Variables and constants Use #define statements to define the constants. Use arr

Pointer Arithmetic We can manipulate the pointers too. We can perform operations such as addition, subtraction, increment and decrement etc.,. As the pointer variables have add

Primarily the term alignment refers the tendency of an address pointer value to be a multiple of some power of two. Thus a pointer with two byte alignment contains a zero in the le

Binary Options EA for DirectFX and SignalPush Project Description: I want a programmer who will build an EA based on my three types of Binary strategy's using two Indicators.

In which condition a template a better solution than a base class? A: While you are designing a generic class to contain or manage objects of other types, while the format & beh

The probabilistic Hough transform uses random sampling instead of an accumulator array. In this approach the number of random samples r, is not specified in the OpenCV call, but is

Write a program which incorporates a function named compute and which is used to calculate the area and circumference of a circle. Use the main function for inputs and outputs.