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 |
where is available in this mantis toturials?
Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)
Diff between IF and where ?
What is the requirement in MIMD ?
Is buffer size and file block size is similar? If similar,at which case it will be same size?
what is the maximam caption size of lebel
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct
how can we implement locks in plsql?
I want Ada programming language books. Could anyone post me any link for that?
what is the exact full form of OOPS,O -> object O -> oriented P -> programing S-> ? ....
needs examples for black box testing and white box testing
what is static objects in java