Jump to content

Binary File Read/Seek

Recommended Posts

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.

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?

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...