kshedden / datareader

Read binary SAS (SAS7BDAT) and Stata (dta) files in the Go (Golang) programming language. Also provides command line tools for working with these file formats.
BSD 3-Clause "New" or "Revised" License
22 stars 12 forks source link

First rows of Stata file are repeatedly re-read on each call to Read() #7

Closed duncanharris closed 5 years ago

duncanharris commented 5 years ago

Seek(,0) happens on every read so first rows of file are repeatedly re-read on each call to Read() https://github.com/kshedden/datareader/blob/8c617eeda35976f2a27fc979ef1590acc66c5a06/stata_reader.go#L843

kshedden commented 5 years ago

Thanks, I think I have fixed this now. If further issues with this let me know.