If memory serves, you can do something like this...
Code:
#include <fstream>

using namespace std;

int main()
{
	ofstream OUT;

	OUT.open("LPT1");

	OUT << "Printing Text" << endl;
	
	OUT.close();


	return 0;
}