in reply to File reading with sysseek and sysread

Check for error returns from sysseek and sysread and show $! if they do give errors.

Gah. Consider opening FH for read access, not append.

  • Comment on Re: File reading with sysseek and sysread

Replies are listed 'Best First'.
Re^2: File reading with sysseek and sysread
by PhilHibbs (Hermit) on Dec 02, 2005 at 11:39 UTC
    Surely append access also grants read access. I've changed it to "+<$2" and it works now! Thanks!
      Surely append access also grants read access.
      No, it doesn't :)
        I probably knew that 10 years ago when I last did any proper direct file access in C.