On Mon, Apr 8, 2024, 3:33 PM Nikhilesh Susarla <nikhilesh1...@gmail.com> wrote:
> I wanted to seek around a file by opening it using read-only, but then I > get this error called "Invalid argument" > > https://go-review.googlesource.com/c/go/+/14881 > > I read the above link and they say it is not supported to seek around. I > tried direct lseek in c language and it failed with same. > > Is there any way ? > What that link says is that if you open the file with O_APPEND then you can't Seek. Are you opening with O_APPEND? If not you will need to provide more information, such as a small program that demonstrates the problem. Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcV21eomhHpPGAVBFdu-WsyOp%3DX4LN_Z0v3n_i4a0qjbzw%40mail.gmail.com.