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
Objective of this Program: (a) To learn more about modularization of a program into independent modules, (b) To use arrays in a program, (c) To get some experience with us

#A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of

/*  THIS PROGRAM IS TO ASK USER TO INPUT TWO DATE & PRODUCE A NEW DATE  */ #include #include struct date  {   int dd;   int yy;   int mm;  }; date add(date d1,date d2)    {

Project Description: I´ve a need linux programming job. if you are interested, Skills required are C Programming, PCB Layout, Embedded Software, Python, Software Architecture

How would I use variables of a C++ object within a Lua function, and then call the Lua function from C++ code?

Question: a) Give two uses of NFS. b) Give one advantage of using NFS. c) Explain the following lines as they would be interpreted in the /etc/exports file i. /usr/local

Program to sort a range of numbers with Insertion: /* define variable */ const int max=29000; int list[max]; FILE *fp; clock_t start,end; char any1[8];

The Conditional Expression Operator An alternate method to using a simple if-else construct is the conditional expressions operator, ?:   A conditional expression operato

Define the following Window class : - integer  data members, width and height - a constructor  that accepts two integer  parameters  (width followed by height) and uses them to ini

construct a console programme for a bank ATM machine.