Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
char buf[512];
cout<<"Input file name";
cin>>buf;
fstream stream;
stream.open(buf,ios::in|ios::nocreate);
if(!stream){
cerr<<"error: could not open file "<<buf;
exit(1);
}
//then read from the file here just
//as you would read from cin