![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Just as pathName
creates an instance of the FileStream
class that enables you to read from a file, newFile:
creates a
file stream that enables you to write into a new file or to overwrite an
existing file. In the following method fragment, the stream is assigned to
a local variable, outputStream
:
*-- File-specifying string v ------------ outputStream := File newFile: 'sorted.dta' -------------------------- ^ *-- FileStream instance