Home Segments Index Top Previous Next

447: Mainline

To create a file stream, which is an instance of the FileStream class, you send a pathName: message to the File class with a file-specifying string. Unlike most instance-creation methods, pathName: creates an instance of a class different from that of the receiver:

                 *-- File-specifying string 
                 v 
               ----------- 
File pathName: 'vtbls.dta' 
-------------------------- 
  ^ 
  *-- FileStream instance