Home Segments Index Top Previous Next

605: Mainline

Alternatively, you can file in filed-out files by evaluating file-in expressions in a workspace.

You first produce an instance of the FileStream class by sending a pathName: message to the File class with a path-name argument. Then, you send a fileIn message to that file stream, as in the following examples:

Workspace
(File pathName: 'c:\test\weight.cls') fileIn. 
(File pathName: 'c:\test\gm.mth') fileIn. 
(File pathName: 'c:\test\isweight.mth') fileIn