Displaying 1 result from an estimated 1 matches for "jb_part".
Did you mean:
db_port
2012 Jun 19
1
seek(), skip by bits (not by bytes) in binary file
...ivide by 20 etc.) and read each chuck
then trash each part that is readBin()'d. Then the last line I get the data
that I want (data1).
Here is my working code:
# I have to read 'junk' bits from the to.read file which is huge integer so
I divide it up and loop through to.read in parts (jb_part).
divr = 20
mod = junk %% divr
jb_part = as.integer(junk/divr)
jb_part_mod = jb_part + mod # catch the remainder/modulus
to.read = file(paste(dbs_path,"/",dbs_file,sep=""),"rb") # connect to the
binary file
# loop in chunks to where I want to be
for(i in...