Skip to content
Prev 179930 / 398513 Next

readBin: read from defined offset TO defined offset?

On 11/05/2009 7:05 AM, Johannes Graumann wrote:
Sure:  just use the "n" parameter to readBin.  This will work for any 
type except character, but it doesn't make sense to read those in a 
given range: what do you do if the last one is not zero terminated?  If 
you want the end of block to count as a terminator, then read the block 
as raw, add a null to the end, and then re-read the raw vector.

Duncan Murdoch