Can anyone help me understand how to open a printer file in C++ using an ofstream or if it is not possible? I've tried each of the following without success:
Code:
std::ofstream stream("QSYSPRT"); // Makes a new text file named QSYSPRT in /home/<user> std::ofstream stream("QSYSPRT *LIBL "); // Makes a new text file named "QSYSPRT *LIBL " in /home/<user> std::ofstream stream("*LIBL/QSYSPRT"); // Open fails std::ofstream stream("/QSYS.LIB/QSYSPRT.FILE"); // Open fails std::ofstream stream("/QSYS.LIB/QSYSPRT.FILE/QSYSPRT.MBR"); // Open fails
Comment