Funktion in CPP erhalten.

ifstream outfile ("myfile.txt");
char ch;

while(outfile)
{
  outfile.get(ch);
  cout << ch;
}
Sleep deprived