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
write short notes about void pointers

Conversion from Basic to User-Defined variable Consider the following example. class Distance                  {                   public  :


Explain the Command Line Parameters? The Command line arguments are parameters supplied to a program from the operating system. These arguments are parameters accepted to main

Write a function to accept a character and display it 40 times.

Write a program that performs character processing on 10 characters read in from a file, and writes the results to output files. Do NOT use loops or arrays to solve this problem. N

We move a high quantity of large Video files (200mb - 2 GB each) across the internet. We have a Linux server (ubuntu) hosted in a datacenter (1Gbps) operating an FTP server. Our

C Program for SORTING OF LONG WORD WITH DIFFERENT STRING #include stdio.h> #include conio.h> #include string.h>   void main() {           char n[50],c[25][25]

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

In this problem you are given a board in which some of the elements are placed as shown in diagram below. Each element represents a color. Fill the other elements in the board, suc