Skip to content

WriteBinFileFromBuffer - cSeqFileHelper

Writes a binary file data from the passed memory address

Type: Procedure

Parameters

Parameter Type Description
sName String The fully qualified name of the file to write
pData Pointer Address variable pointing to the data to be written
iSize Integer The size of the data to be written

Syntax

Procedure WriteBinFileFromBuffer String sName Pointer pData Integer iSize

Call Example

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.