<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">I hope this isn't a bone-headed question in either sense of what or how I am asking, but would it be in principle possible to adapt fread to read fixed record binary .bin files? </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I guess this is more of a feature request, although it's a help request if someone's figured it out already.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">TAQ bin files would be a major usage case, for instance. These are 60 gig files that are usually 30-33 characters * 600M rows long.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">An example would be reading a fixed record length, so imagine something like</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div> bidsiz<-readBin(qin,what='integer',size=4,n=1,endian='little') </div><div> ofrsiz<-readBin(qin,what='integer',size=4,n=1,endian='little') </div>
<div> mode<-readBin(qin,what='integer',size=2,n=1,endian='little') </div><div> ex<-readBin(qin, what='character',size=1,n=1,endian='little') </div></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">- Alan</div></div>