Yes, binmode does help me in reading the characters as they are. But I'm not sure as to how many bytes I should read at a time. Since PCL files are not regular ASCII files and they are not delimited on "\n", reading them one line at a time is not a simple thing unless I know the line delimiter.
I've been trying to find the line and page delimiter from those characters in the file and using PCL command reference, but I couldn't succeed.
I figured all the commands begin with ESC control code.
In reply to Re^2: How to edit a PCL file
by GoForIt
in thread How to edit a PCL file
by GoForIt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |