Plug-in Reference — Inline Functions — Editor_InsertFileA

# Editor_InsertFileA

Inserts the specified file contents at the cursor. The file name is specified as an ANSI string. You can use this inline function or explicitly send the EE_INSERT_FILEA message.

Editor_InsertFileA( HWND hwnd, LOAD_FILE_INFO* pLoadFileInfo, LPCSTR szFileName );

## Parameters

hwnd

Specifies the window handle of the view or frame of EmEditor.

pLoadFileInfo

Pointer to a LOAD_FILE_INFO structure. If this parameter is NULL, Editor_InsertFileA will open a file by a method predefined by the properties.

szFileName

Specifies a full path file name. If a non-existing file is specified, Editor_InsertFileA will fail.

## Return Values

If the command is successful, the return value is nonzero. If the command it not successful, the return value is zero.