ExportFileMemory()
Syntax
*Buffer = ExportFileMemory(#File)Description
Exports the full content of the specified file to a new memory buffer.
Parameters
#File The file to export.
Return value
A new memory buffer internally allocated with AllocateMemory() containing the file content. Once the buffer is no more needed FreeMemory() must be called to release the memory.
Example
If CreateFile(0, "SomeText.txt") WriteStringN(0, "First line") WriteStringN(0, "Second line") *Buffer = ExportFileMemory(0) Debug PeekS(*Buffer, 0, 3) ; Will display 'Fir' CloseFile(0) EndIf
See Also
ExportFile()
Supported OS
All