Professional Documents
Culture Documents
{
(outfile) getenv
{
/outfilename exch def
(infile) getenv
{
/infilename exch def
infilename status
{
pop pop pop pop outfilename status
{
pop pop pop pop
infilename (r) file /infile exch def
outfilename (a+) file /outfile exch def
{
infile datastring readstring
{
outfile exch writestring
}
{
dup length 0 gt
{outfile exch writestring}
{pop} ifelse
exit
} ifelse
} loop
infile closefile
outfile closefile
}
{
(Failed to find file ) print outfilename ==
} ifelse
}
{
(Failed to find file ) print infilename ==
} ifelse
}
{
(Couldn't find %infile% environment variable) ==
} ifelse
}
{
(Couldn't find %outfile% environment variable) ==
}
ifelse
} bind
exec