Displaying 1 result from an estimated 1 matches for "dbs_file".
Did you mean:
  db_file
  
2012 Jun 19
1
seek(), skip by bits (not by bytes) in binary file
...39;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 1:(divr-1)){
    x = readBin(to.read,"raw",n=jb_part,size=1)
    x = NULL # trash the result b/c I don't want it
  }
# read a a little more to include the remainder/modulus...