WriteBinFileFromBuffer - cSeqFileHelper

Writes a binary file data from the passed memory address

Type: Procedure

Parameters: String sName Pointer pData Integer iSize

ParameterDescription
sNameThe fully qualified name of the file to write
pDataAddress variable pointing to the data to be written
iSizeThe size of the data to be written


Syntax
Procedure WriteBinFileFromBuffer String sName Pointer pData Integer iSize

Call: Send WriteBinFileFromBuffer sName pData iSize


Description

WriteBinFileFromBuffer creates and writes a file as binary data. It is passed the name of the file, the address of the data and the size of the data.

String sAppSrc sName

// assume aBuffer contains the data of size iBinSize

Get psAppSrcPath of (phoWorkspace(ghoApplication)) to sAppSrc
Move (sAppSrc +"\Test.exe") to sName

Send WriteBinFileFromBuffer of oFileHelper sName aBuffer iBinSize


Use ReadBinFileToBuffer to read a binary file.