Dim b As BinaryStream Dim f As FolderItem f=SpecialFolder.Desktop.child("test.xyz") b = binarystream.create(f,True) b.writeuint8(3) b.close
I don’t understand “CREATE”…
If I leave off “True”… I get file errors… If I don’t then I can write to the file…
and if I set a position greater than the file size, it pads the file with zeros
If I use OPEN with readwrite TRUE it seems to be the same as CREATE with Overwrite=True
So is this correct?
* 1] b.Open(path, false) ... file must exist and is READ ONLY * 2] b.Open(path,true) ... file must exist and is Read/Write... and attempt to read past EOF, pad out the file with zeros * 3] b.Create(path,false) ... same as #2 * 4] b.Create(path,true) ... creates file if not exists, then same as #2