Connect to printer by C Program
#include<stdio.h> #include<conio.h> #include<stdlib.h> void main() { FILE *fp; char ch; fp=fopen(" full qulified file name that you want to read ","r"); if(fp==NULL) { printf("can not open file\n"); exit(1); } while((ch=fgetc(fp))!=EOF) { fputc(ch,stdprn); } fclose(fp); getch(); }