Sign in to follow this  
Followers 0

Binary File Read/Seek

3 posts in this topic

I want to write a script to read in data from a binary data file (I think it's binary).

These files can be very large (>50Mb) so I do not want to read the whole thing in.

I have details of the structure of the data, so I know what it where.

What I want to be able to do is read in a specific byte of data at a location in the file.

This is basically a pointer to another part of the file, so I would then need to be able to read from the file at that location. There then maybe more pointers and locations to read from.

This data is stored in various formats (Unsigned 16bit & 32bit integers, char, etc) so I would need to be able to convert these if needed.

Any ideas how this could be done in AutoIt?

I've tried FileRead, but what I'm getting back doesn't make much sense to me, and I've no idea how to make it read from a specific location in the file.

Share this post

Link to post
Share on other sites

Thanks for the reply, but it dosn't work for me (I thought it had been replaced by the latest FileRead function anyway according to that thread).

I get the following error when I try and run it using normal or beta methods.

"C:\Utils\INCALogNameSeach_001.au3(13,10) : ERROR: can't open include file "APIFileReadWrite.au3"

#include "APIFileReadWrite.au3""

Any ideas?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0