ReadBytes function of buffo says It returns EOF if it encounters any issue while reading file.
Is this true?
ReadBytes reads until the first occurrence of delim in the input, returning a slice containing the data up to and including the delimiter. If ReadBytes encounters an error before finding a delimiter, it returns the data read before the error and the error itself (often io.EOF). ReadBytes returns err != nil if and only if the returned data does not end in delim. For simple uses, a Scanner may be more convenient.
My file is of 1GB and I am facing issue after reading 168 lines. Is there any other package which returns actual error or reads 1GB file?