From Xojo Documentation
Opens the passed FolderItem as a binary stream. The readwrite parameter controls whether the file is open for read/write operations or read-only. The default is False. Call Open using the syntax for a shared method. If an error occurs, it will fire an IOException.
BinaryStream.Open(f as FolderItem, readwrite as Boolean).