Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to FolderItem class.
FolderItem.ReadFileMBS(byref data as MemoryBlock, offset As Integer = 0, byteCount As Integer = -1) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 21.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Reads content of file and returns it in data parameter.
Returns true on success of false on failure.
See also WriteFileMBS function.
If the MemoryBlock is nil, we create one.
If the MemoryBlock is not nil and has right size, we use it, otherwise we create a new one.
Not intended for files >2 GB.
Added offset and length parameters in version 23.1.
If byteCount is negative, we read whole file. If byteCount is bigger than file, we only read the available portion.
See also:
FolderItem.ReadFileMBS(byref data as string, offset As Integer = 0, byteCount As Integer = -1) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS Util Plugin | 19.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Reads content of file and returns it in data parameter.
Returns true on success of false on failure.
See also WriteFileMBS function.
Limited to maximum size of a string (2 GB)
Data must fit in memory, so 32-bit processes may be limited to reading less than 2 GB.
Added offset and length parameters in version 23.1.
If byteCount is negative, we read whole file. If byteCount is bigger than file, we only read the available portion.
See also:
The items on this page are in the following plugins: MBS Util Plugin.