in reply to Replace a text in file at given offset with other text

Please note that the seek() function operates on a byte level, not a line level. You are saying "offset 3" which implies byte offset, but it sounds like you really mean "line number 3".

xoxo,
Andy

  • Comment on Re: Replace a text in file at given offset with other text