Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.PutFile Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
void  PutFile ( [in]   String  FileName, [in]   ulong  Offset, [in]   bool  InsertMode) ;
Native (C++):
HRESULT  PutFile ( [in]   BSTR  FileName, [in]   unsigned __int64  Offset, [in]   BOOL  InsertMode) ;
Parameters
FileNameThe full path name of the file.OffsetInsert offsetInsertModeTrue to insert a file's contents, False to overwrite the current document's data with data from the file.
Return Value
S_OK or standard OLE error code.
Remarks
Writes or inserts the contents of the file into the current document. InsertMode parameter governs the behavior of the function. Complexity: constant-time.
Examples

Concatenating Files

JavaScriptCopy Code
var fdoc = new ActiveXObject("FileDocument.FileDocument");
fdoc.Open("c:\\temp\\file1.bin");
fdoc.PutFile("c:\\temp\\file2.bin", fdoc.FileSize, false);
fdoc.Save(false);
    
< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.