Bob Thingum Posted December 15, 2005 Share Posted December 15, 2005 Hello, How can I write Chr(0) to a file? TIA. Link to comment Share on other sites More sharing options...
SandelPerieanu Posted December 15, 2005 Share Posted December 15, 2005 $FILE = "File" FileWrite($FILE, Chr(0)) Link to comment Share on other sites More sharing options...
Bob Thingum Posted December 15, 2005 Author Share Posted December 15, 2005 $FILE = "File"FileWrite($FILE, Chr(0))Does not write anything to the file. Did you try it yourself? Link to comment Share on other sites More sharing options...
Rece Posted December 15, 2005 Share Posted December 15, 2005 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... Link to comment Share on other sites More sharing options...
Bob Thingum Posted December 15, 2005 Author Share Posted December 15, 2005 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? Link to comment Share on other sites More sharing options...
SandelPerieanu Posted December 15, 2005 Share Posted December 15, 2005 YES! i tried and file have 1 bytes. Link to comment Share on other sites More sharing options...
Bob Thingum Posted December 15, 2005 Author Share Posted December 15, 2005 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now