The issue you linked to involves files opened for writing with the O_APPEND flag. That isn't relevant if you opened the file read-only. Please show us the code you wrote.
On Mon, Apr 8, 2024 at 1: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 ? > > Thank you > > -- > 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/cf1f423c-6ba7-4b98-b37c-ac53758dcbc4n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/cf1f423c-6ba7-4b98-b37c-ac53758dcbc4n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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/CABx2%3DD_a6zoRSrntPv%3Dm0drMfef5A%3Dx%2BZ-Pv8_eGdr25MA1i8A%40mail.gmail.com.