File | Open (Ctrl+O)

Top  Previous  Next

Open one or more existing files

 

You will see a file dialog; in this dialog you can select various file types, like GMS (GAMS) LST (GAMS listing file) TXT (regular text file) etc. Selecting more than one file is allowed.

 

If a file was open already; it will not be opened again. Instead, the edit window and the Tab for that file will become the active edit window. If the file was modified in the editor, you will be asked if you want to reload the file from disk.

 

To open a file in a new window, see: MainForm: File | Open in New Window, or hold down the Shift key while selecting a file.

 

You can also open files by dragging the file to the editor. Select one or more file in the Windows Explorer, and while holding down the right mouse button, move the selection to the editor and release the mouse button.

 

The file open dialog remembers the last directory used for opening a file. Use MainForm: Open in project directory to reset the directory to the project directory.

 

See also Mini Explorer for details how to use the file dialog.

 

When opening a file, the file extension determines which editor / viewer will be used to display the file. When a file extension is not recognized as a special file extension, the editor will be used to display the file. The following table summarizes the special file extensions recognized:

 

 

Instead of using the special viewer, we can force the file to be opened by the editor by using Open in editor.

 

When the 'Read Only' box is checked in the file open dialog, the file will be shown using the Listing file viewer. This allows for viewing large files, but such a file needs to be closed before another program can rewrite the file.