Displaying 1 result from an estimated 1 matches for "byte_mark".
2006 Nov 07
1
reading VERY large binary files
...t is prohibitively slow (takes more than
a day to run and still won't complete). Is there any faster way to
accomplish this?
My current procedure looks like this:
readHH <- function(file_name, hhid_list) {
incon=file(file_name, open="rb")
result=data.frame()
tran=list()
byte_mark=0
last_1M_mod=0
file_size=file.info(file_name)$size
write.table(paste("Data pulled from", file_name, sep=" "),
file="readHH_output.txt", sep=",", row.names=FALSE, col.names=FALSE,
append=TRUE)
while (TRUE) {
tran$hh_id <- readBin(incon,integer(),1...