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 |
Difference between views and index in sas programming
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
What is the meaning of client-server application. The purpose of Client-Server Application. with description.
what is database?how to tell 3years boy or girl by using toys?
Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.
What is Partial class and its use?
what is client server & server? What r types of Joins? explsin it! which types of indexex in sql server? what is triggers?
can php support multiple inheritence?
how can we implement locks in plsql?
what is the extension of SPDS Dynamic cluster tables?
what is the difference between set and append?
When we use Windows authentication mode