There aren't line delimiters in PCL, since the printer doesn't care about "lines" in a control file. Just read the file in fixed-length chunks to do your manipulations. It shouldn't matter how many bytes you process at a time, so I'd choose a relatively large buffer (32K or so).
...roboticus
In reply to Re^3: How to edit a PCL file
by roboticus
in thread How to edit a PCL file
by GoForIt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |