22-11-2012 22:16
He hecho una prueba y a mí así me funciona bien.
Código:
#include <iostream>
#include <fstream>
#include <string.h>
using namespace std;
int main()
{
    ifstream fichero("texto.txt");
    while(!fichero.eof())
    {
        cout << (char)fichero.get();
    }
    return 0;
}