Reading Binary into array.



Guys,

First let me apologies for pestering you all... but so far all the advice
has helped my application move along way from theory stage to working
stage...

I'm wanting to work with a file as binary, but as part of my application
will allow an offset into the file, and the filesize will be a maximum of
64kb, I'm thinking it might be easier to work with the file within an array
(reading it into it) or something, so the offset can just work within the
array rather than reading the file constantly of the drive.

Is there an easy way to achieve this? various Google searches have turned a
few things up, but they either look too complicated for my needs to seemed
to be geared towards vb.net rather than vb6.

Hope someone can help

Regards
Paul.


.



Relevant Pages

  • Re: Reading Binary into array.
    ... application will allow an offset into the file, ... the file within an array (reading it into it) or something, ... Open "SomeFile.Bin" For Binary As #hFile ...
    (microsoft.public.vb.general.discussion)
  • Re: Really Stuck, Please Help
    ... I am not sure how to construct an array. ... Reading Master Log", of the "Copreco Master Log" workbook. ... Dim sourceBook As String ...
    (microsoft.public.excel.programming)
  • Re: Problem with a script
    ... a loop there becomes impractical. ... You still have them as uniquely named array indexes... ... writing the code twice will only ... reading your entire code and parsing it in their head, ...
    (comp.lang.php)
  • Re: Problem with a script
    ... Okay, so variables have unique labels, that doesn't mean they still couldn't be handled in a loop. ... You still have them as uniquely named array indexes... ... I believe that for the new guy this code would be readable, and identifying problems should really not be any more difficult with this, plus I think that it actually might save some time to write the actual code from the beginnig, even though it's not at it's final stage, instead of first writing everything spread out, and then rewriting the same code again cleaned. ... If you expect a person to spend an hour reading your entire code and parsing it in their head, you wont get any help and have to solve the problem by yourself. ...
    (comp.lang.php)
  • Re: Array descriptors
    ... There seem to be two ways of implementing the array descriptors ("dope ... where the base_address plus the offset defines the first memory ... Sun Fortran uses a third option. ... origin, your base address, and a virtual origin, the address ...
    (comp.lang.fortran)