I am a beginner to programming and I am trying to get my program to to print data to my printer but I am faced with two problems depending which comiler I use.
/* program as follows */
if( ( p_ptr = fopen("PRN", "w") ) == NULL )
/* some error message */
fprintf(p_ptr, "some data here");
1. (old Boland compiler): It doesn't return a NULL pointer but nothing prints. I get a time out message.
2. (New boland compiler): It returns a NULL pointer.
I also believe that it would be quicker to writd the data to a text file and then print that how do I do this.
If you can help me with any of the above I would be very greatful.