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 |
Tell me the jobs for the MCA Fresher in delhi, Noida..
What is the purpose of <Trigger> element of <updatePanel> in Ajax
WHAT IS NV RAM ?
Is the IT field raise again? What is the position of IT after 4 years?
write a query that returns one row for each department and the number of employees in that department. Given two tables EMPLOYEE and DEPARTMENT, where there can be multiple employees per department.
how do find the user exit for selected feild whatis the process and can u plz explain it
what is the draw back of Power builder
Need provab technical test questions
how CLR identify vb file?
hii I inntrested abt scjp certification but i dont knw abt scjp plz send details abt scjp exam and syllabus.
What is the output of the following x = "abcdef" i = "a" for i in x: print(i), a) no output b) i i i i i i … c) a a a a a a … d) a b c d e f
can any method return type may be constructor , or that method name allow