c++ lettura file

C++
#include <fstream.h>

void main() 
{
  ifstream OpenFile("cpp-input.txt");
  char ch;
  while(!OpenFile.eof())
  {
    OpenFile.get(ch);
    cout << ch;
  }
  OpenFile.close();
}
Source

Also in C++: