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
Differences between a pointer and a reference 1.  A reference must always point to some object where as this restriction is not imposed on a pointer. e.g. int *pi = 0;

Write a program IdentyfyWordsMain.java reading a fi le (like HistoryOfProgramming) and divide the text into a sequence of words (word=sequence of letters). Save the result in a new

Define the Keywords of c language? C keeps a small set of keywords for its personal use. These keywords can't be used as identifiers in the program. Here is the list of keyword

Is it legal for a member function to say delete this? A: As long as you're cautious, it's OK for an object to delete this. Here's how I define "cautious": You have to be a

Can you think of a condition where your program would crash without attaining the breakball, which you set at the straining of main()? A: C++ let for dynamic initialization of g

I want source code for class booking system by using C++ Programming...Urgent

creating a system having five process from p0 to p4 and five resource types. create the need matrix use the safe algorithm to test if the system is in safe mode.

Write a C program "team.c" that maintains information for a soccer team. The program will allow you to add and delete players from your team, to search your team for players by nam

C Program for FUNCTION OF COUNT THE INTEREST float si(float,float,float); void main() {           float p=0,r=0,n=0,k=0;           clrscr();           printf("E

By pressing ‘6’ (i.e. key’6’ one time) on the keypad, the mobile shows ‘m’ on display screen in write text message area