Show/Hide Toolbars

EmEditor Help

EmEditor Home - EmEditor Help - Plug-in Reference - Inline Functions


Saves the text to a specified file. The file name is specified as an ANSI string. You can use this inline function or explicitly send the EE_SAVE_FILEA message.

Editor_SaveFileA( HWND hwnd, BOOL bReplace, LPSTR szFileName );



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


Specifies TRUE if the text will be saved under a specified name; the file name EmEditor holds and the title shown on the EmEditor Window will be changed. Specifies FALSE if a copy of the text is saved; the file name EmEditor holds will not be changed.


Specifies a full path file name in bytes.

Return Values

If it is succeeded, the return value is nonzero. If it isn't succeeded, the return value is zero.

Copyright © 2003-2022 by Emurasoft, Inc.