Having trouble reading, more specifically writing PCL print stream. I am trying to read (sequentially), parse and write PCL to a new file. The problem is x'00' values are not being written to the output file. Below is an abbreviated code example I am trying:
open for binary as #1
open for output as #2
do
if eof(1) end
input #1,rec
' ..... parsing ... search and replace
print #2,rec
loop
open for binary as #1
open for output as #2
do
if eof(1) end
input #1,rec
' ..... parsing ... search and replace
print #2,rec
loop