Write a program to read and print a text file on screen
Answer / ashwek
/// Using C++
#include<iostream>
#include<fstream>
#include<stdio.h>
int main(){
char Data[200];
ifstream File("FILE_NAME"); //Opening a File
while(File){ //Run until End of file
File.getline(Data, 200); //Read data from file & store in Data (string)
cout<<Data; //Print data
}
File.close();
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
What r the attributes using in Win Runner?
0 Answers Tavant Technologies,
you have a computer with 80GB hard disk and ubuntu 8.04 is installed on entire hard disk.now you have to create a seprate partition for windows OS and install win XP as dual boot.write down the steps involved along with the commands
1 Answers Anand Group, Indian Navy, TCS,
How Many versions are there in crystal reports
What do you mean by an array ? explain with an example
what is programming language?
Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?
What is a must for multitasking? a) Process preemption b) Paging c) Virtual memory d) None of the above
About CLR, reflection and assemblies?
Hi all... I had completed MSC(Computer) and had join the construction company based on sap.they want me to work on abap.but software company is totally different from construction company and they want me 2 grasp it as fast i can.i am finding it difficult.what should i do??????
what is delegats ?
what is static objects in java
Programs in JAVA to get the remainder and quotient of given two numbers without using % and / operators?