I hope you can shed some light on my problem.
I am new to C programming. I have version 4.52 of Borland C++ and a
Cannon BJC-4200. when I use fscanf as below the print goes to the screen
not to the printer.
int i = 100;
char c = 'C';
float f = 1.234;
/* open a file for update */
stream = fopen("LPT1", "w");
/* write some data to the file */
fprintf(stream, "%d %c %f", i, c, f);
/* close the file */
Can you suggest a way out please.
fscanf actually reads from a file.
Other than that I do not know how you should open a file stream to your
[ back to toc ]