Anonymous
public text v1 · immutable#include <fstream>
#include <iostream>
using namespace std;
int main(){
char buffer[256];
ifstream myfile ("db.txt");
while (! myfile.eof() ){
myfile.getline (buffer, 100);
cout<< buffer <<endl;
}else{
cout<<"That file does not exist."<<endl;
}
return 0;
}