std::ofstream printer("LPT1", std::ios::out); std::string MyString("Hello everybody!"); printer << MyString;