reading binary file, then writing

  • Thread starter Thread starter Winter Special
  • Start date Start date
W

Winter Special

I need to read in a binary file 100 bytes at a time, do some processing ,
then write the results to a binary file i create. I don't want to read in
the whole file at once because it could be huge.

I would like to do this without using "Scripting.FileSystemObject".
Somebody suggested http://www.mvps.org/access/modules/mdl0057.htm , but I
think that only works for text files, I believe.

Also, does anyone know a good reason why one shouldn't use
"Scripting.FileSystemObject" for doing something like this? We had a thread
like this awhile ago but I can't find it. I remember reading that one reason
is because a virus checker like McCaffee will sometimes block scripts like
this from executing.

Any info on this would be much appreciated.

Jack
 
Winter said:
I need to read in a binary file 100 bytes at a time, do some processing ,
then write the results to a binary file i create. I don't want to read in
the whole file at once because it could be huge.

I would like to do this without using "Scripting.FileSystemObject".
Somebody suggested http://www.mvps.org/access/modules/mdl0057.htm , but I
think that only works for text files, I believe.

Also, does anyone know a good reason why one shouldn't use
"Scripting.FileSystemObject" for doing something like this? We had a thread
like this awhile ago but I can't find it. I remember reading that one reason
is because a virus checker like McCaffee will sometimes block scripts like
this from executing.


IMHO, there's no need to use a library for this kind of
thing. Access has the usual Basic File I/O statements that
make this pretty straightforward. See Help for FreeFile,
Open, Get, Put, etc
 
Back
Top