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);