search for: jb_part_mod

Displaying 1 result from an estimated 1 matches for "jb_part_mod".

2012 Jun 19
1
seek(), skip by bits (not by bytes) in binary file
...;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 1:(divr-1)){ x = readBin(to.read,"raw",n=jb_part,size=1) x = NULL...