Jump to content

I want to cut a small piece of a large binary file


Recommended Posts

Hi! Please, help

I want to very quickly cut a small piece of a large binary file at the end. This piece (5 KB) I need. I am using:

# Include "Binary.au3"

$ bData = FileRead ($hFile)

$ bData = _BinaryRight ($bData, 5000)

FileClose ($ hFile)

This works for a long time. How can I do differently?

TNX ;)

Link to comment
Share on other sites

YES! thank you very much!

#include <Constants.au3>

$hFile = FileOpen ($hFile, 16)

FileSetPos ( $hFile, -5000, 2 )

$bData = FileRead ( $hFile )

FileClose ( $hFile )

This work very fast ;) Edited by scon
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...