Listing 1

#include <fstream>
#include <process.h> // windows
// #include <unistd.h> // posix

using namespace std;

int main() {
  std::ifstream f("input.txt");
  f << "Hello Christopher" << endl;
  f.close();
  return execl("to_upper.exe < input.txt > output.txt", 0);
}