Jump to content
Sign in to follow this  
SinoAlpha

How to read a file as binary

Recommended Posts

SinoAlpha

As the title. I want to read a file as binary, if i use "fileread ( "filename", 1)", au3 will read the file char by char.

How can i get the file bit by bit...thx

Edited by SinoAlpha

Sino-Alpha

Share this post


Link to post
Share on other sites
Sardith

;FileOpen ( "filename", mode)
;16 = Force binary(byte) reading and writing mode with FileRead and FileWrite


$File = FileOpen("FILE", 16)
FileRead($File)

Not sure if this is what you want..


[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Share this post


Link to post
Share on other sites
SinoAlpha

i have seen this before

"$File = FileOpen("FILE", 16)"

but i always have the "@error = 1", i can't open it in mode 16


Sino-Alpha

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  

×