The FileNew() function works like the File/New menu. However, it will not pop up a file selection dialog. It will create a file/window of the type you specify in the file name. If the extension is associated with a window like .gscr, or .log the window will be opened. If the extension is unknown no operation is not performed.