Jump to content
Sign in to follow this  
LLAMEDOSO

File problem

Recommended Posts

I want to write a string with a binary 0 at the front to a file. 

The attached file shows what I want to do but it does not work.

I'm a newbie to Autoit, finding it very good but the file operations seem difficult to me.

Also miss the astr = bstr[1.. 7] function that's in other languages.

 

Snppet.au3

Share this post


Link to post
Share on other sites

do you mean you want Ascii character code 0 (the first one in the ascii table?)

Chr(0)

should do it

Edited by boomingranny
made answer a bit clearer

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...