C program to display the contents of file on a screen, C/C++ Programming

Program is to display the contents of file on a screen:

Write a program to display the contents of file on a screen

void main()

  {

 clrscr();

 ifstream fin("ascii.txt");

  char ch;

 while (! fin.eof())

   {

   fin>>ch;

   cout<

   }

   fin.close();

  getch();

  }

 

 

Posted Date: 10/19/2012 5:35:42 AM | Location : United States







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

Write discussion on C program to display the contents of file on a screen
Your posts are moderated
Related Questions
hi Bhasker, as we spoke tru phone ,we need a project using cloud computing .we need to present a protoype or demo on it (any thing using cloud should be fine)(ex: P2p)

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.   #include float start_poin

Sir i want to know all the basic knowledge of turbo c.

THEORY OF COMPUTER PROGRAMMING

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

i have an array of structs, and am trying to make a pointer that can point to a certain struct within the array

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

push and pop operation using array draw flowcharts

Literals (Constants) Constants are data storage locations whose address is not accessible for the user. Their value is not altered during the course of the program. Literal

input marks of c and c++ if c grater than equal to 50 grater than 50 you are pass if c greater than equal to 50 c++ less than 50 than supplementry c++ if c less then 50 and c++ gra