reading binary file, then writing

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
 
M

Marshall Barton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top