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 |
Define distributed queries. can you explain me as soon as possible
what is class module in vb6? what it's use? with example..
write the a cl program with the following specification A. Accept 2 parameters-date and date type B. if date type is J then convert date to *MDY format C. if date type is M convert date to *JUL format 4.send a program message with the value of converted date Please explain for each with coding?
ok how would i do the following extract from a file i have ssns = 267907230 which are in column 7 into a separate data set then create a 2nd job step to extract from the data set created the following "fund code" which is in column 31 and is 113 into yet another data set
What is the difference b/w Object base and object oriented programming?
How to link calculator in oops concept? how is it working in oops concept? why dont u using in beginning of program 'z' in abap(sap)?
What are the tasks performed by a Team Lead
Write a program to create a process in UNIX
How to print No.of.rows affected after updation using ADO.Net
they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?
How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?
what is c sharp dotnet