I am using os.ReadAt() to read certain rows in a csv/tsv file. However, I don't know how many bytes are in that row, I just need to read the line starting at the byte offset I specify until the newline.
buffer = make([]byte, 46)
os.ReadAt(buffer, 64) //Read at byte offset 64 and put contents in buffer
However, this only allows me to read 46 bytes of the line in. Is there any way to read the entire line until the newline?
Thanks
Update:
I just create a struct that holds the offset and line length.. Should've done this in the beginning.. my bad