Parameter | Description |
---|---|
sName | The fully qualified name of the file to write |
pData | Address variable pointing to the data to be written |
iSize | The size of the data to be written |
Procedure WriteBinFileFromBuffer String sName Pointer pData Integer iSize
Call: | Send WriteBinFileFromBuffer sName pData iSize |
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.