My printer is connected to my USB001 port, and in my c++ book that i bought i learned some command to send the eum output to your printer...
here's the program
#include <iostream> #include <fstream> using namespace std; main() { ofstream prout ("USB001"); for ( char ch = 'a'; ch <= 'z'; ch++) prout << ch; prout << '\f'; cin.get(); }
so the output should be that my printer starts printing the line
abcdefghijklmnopqrstuvwxyz
but it doesn't do that... instead it makes a file (in the same map the program is in) named USB001
that when you open it using some text program you get the output in... namely the line of above...
any help would be really appreciated
(im using Borland C++ 6 enterprise environment or whatever it's called )