Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
.STREAM OPEN | ||||||||
Line: 17 to 17 | ||||||||
Description: | ||||||||
Changed: | ||||||||
< < | This subroutine is called to open a file stream. A file stream can point to an actual file on the filesystem, or it can be output from an O/S command (eg, opening a 'pipe' via a file name of "|dir" or "|ls- l"). | |||||||
> > | This subroutine is called to open a file stream. A file stream can point to an actual file on the filesystem, or it can be output from an O/S command (eg, opening a 'pipe' via a file name of "|dir" or "|ls- l"), or it can be a URL (eg, http://www.appx.com). | |||||||
The first three parameters are required, and the subroutine will CANCEL if they are are not all received. The <line_termination> parameter is optional. <stream_name> is the symbolic name of the stream used to open the file (Required). This can be any name you desire. All subsequent operations on this stream will be via this name. | ||||||||
Changed: | ||||||||
< < | <pathname> is the actual file to be opened (ie, /tmp/appx-registration.txt) or the pipe to be read (ie, "|ls -l /tmp") (Required). If you are opening a file for WRITE or APPEND, Appx will also create the path if necessary. | |||||||
> > | <pathname> is the actual file to be opened (ie, /tmp/appx-registration.txt), the pipe to be read (ie, "|ls -l /tmp") or the URL to be read (ie, http://www.appx.com) (Required). If you are opening a file for WRITE or APPEND, Appx will also create the path if necessary. | |||||||
<open_mode> determines how the file will be opened. Valid values are READ, WRITE, and APPEND. You may also just use the first letter of each word (R, W, A). |