All pastes #798840 Raw Edit

Anonymous

public text v1 · immutable
#798840 ·published 2007-11-27 01:36 UTC
rendered paste body
#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;
          }