in reply to EBCDIC File I/O

According to the sysread documentation, mixed use of the unbuffered sysread() function with buffered I/O functions such as eof() will cause wierdness. Instead try checking the return value of sysread() to see if it is zero.

Replies are listed 'Best First'.
Re^2: EBCDIC File I/O
by Grygonos (Chaplain) on May 17, 2006 at 13:38 UTC
    That did it.. 100% the problem.. thanks. In the past I had used read to accomplish the same task.. never realized eof was buffered. Incredibly interesting behavior though. Thanks much.