Sign in to follow this  
Followers 0
Bob Thingum

Write Chr(0) to a file?

7 posts in this topic

Hello,

How can I write Chr(0) to a file?

TIA.

Share this post


Link to post
Share on other sites



$FILE = "File"

FileWrite($FILE, Chr(0))

Share this post


Link to post
Share on other sites

$FILE = "File"

FileWrite($FILE, Chr(0))

Does not write anything to the file. Did you try it yourself?

Share this post


Link to post
Share on other sites

Does not write anything to the file. Did you try it yourself?

Do you know how Chr(0) looks like? Just take a look to the file size. If you open it in a text editor you will see nothing but the Chr(0) is there...

Share this post


Link to post
Share on other sites

Do you know how Chr(0) looks like? Just take a look to the file size. If you open it in a text editor you will see nothing but the Chr(0) is there...

File size is zero bytes. Did you get something else?

Share this post


Link to post
Share on other sites

YES!

i tried and file have 1 bytes.

Share this post


Link to post
Share on other sites

YES!

i tried and file have 1 bytes.

Got it! I had to upgrade to v.3.1.1.95-beta first. Thank you, psandu.ro!

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