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 |
When we use Windows authentication mode
Find out the roles which gives access to all tables in SAP? Thanks in advance.
Hello Experts, What is the difference between move and move corresponding exactly? please post me asap
what is different betweet class and interface in java?
2 Answers Microsoft, Sun Microsystems,
what is the difference between "types" and "data" in abap.
what is the maximam caption size of lebel
How to get the index of the clicked field in reports in ABAP?
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
HOW TO BREAK THE FIREWALL?
needs examples for black box testing and white box testing
how to display xisheet in list box in c# .net
is possible to delete specific data in a row by using of sql query?