You can open (load) any standard ASCII text file into the Text Editor and then modify the current file, or change the name of the file to create a new file, which leaves the original file intact. To load a file from your file system into Text Editor:
Select and open the file.
The file you have specified is displayed in the Text Editor window. For complete information on opening a file, refer to Chapter 1, Introduction to the Solaris User Environment.
You can now edit the existing file and either save your changes in that file, or save it as a new file. To modify the file, see "Editing Files". To save the changes to the existing file, do the following:
Choose File -> Save from the Text Editor control area.
The file is automatically saved.
Because UNIX does not allow two documents with the same name in one directory, when you make a copy of a document in the same directory the original file is automatically saved to a backup file and renamed with a % suffix. For instance, a file named messages would automatically be renamed messages%. The next save overwrites the existing backup file rather than creating a second backup. Figure 3-8 shows the two files displayed as icons in File Manager.
To keep the original file intact and create a new file with the modifications, do the following:
Choose File -> Save As.
You see the Text:Save As window.
Name and save the new file.
The file is stored in the designated directory and file. For complete information on saving a file, refer to Chapter 1, Introduction to the Solaris User Environment.