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
develop an algorithm using pseudocode for computing cos(x) and sin(x). use a sentinel controlled while loop. use the series definition of e^+-jx

What is the difference between JavaScript and PHP? The difference lies with the execution of languages. PHP is server side scripting language, which means that it cannot intera

Hi is there any chance to get assignment for fresher tutor

Question 1 What are the different steps in executing a C program? Explain Question 2 What are the commonly used input/output functions in C? How are they accessed?

Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your

Array types An array is a collection of objects of a one data type. The individual objects are accessed by their position in the array. This way of accessing is known as indexi

Write C code for a program that implements a digital clock (HH:MM:SS). The clock includes a two-digit hour indicator HH (00-23), a two-digit minute indicator MM (00-59), and a t

Ask questionByteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular

There are ''n'' ants on a ''n+1'' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are moving eith

Write a program to define a matrix: 1. Write a function that takes an integer and calculates and returns the factorial of the integer. The Factorial of a number "n" is compute