You can use getline with an appropriate delimeter. The default is '\n' so it should work with what you need. The reason it doesn't work with operator>> of ifstream is that operator>> uses whitespace as a delimeter so you only get one word at a time.
Code:
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main() {
// ios::in is the default, so no need to specify it
ifstream f("dbase_a.txt");
string line;
// getline eats the delimeter ('\n' by default) but doesn't
// store it, so you'll have to consider that when using it.
while(getline(f, line)) {
cout << line << endl;
}
}
Hope this helps.