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 |
Ordered List tag is
what are the missinschema properties and should we pass primary key in select command
WHAT IS NV RAM ?
A combination of multiple keys defined in a physical file or logical file is called a _________ key
they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?
Write a program to reverse a number?
what is woransient key word? how it is used in java
how many languages .net is supporting now?
Why we use NEW operator when we create Object,While in C++ we donot ?
what is dot net framework
hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced
what is the difference between a looping statement and a decision statement