Initializing help system before first use

fselect

Purpose
Select the active input, output or error stream.
Synopsis
procedure fselect(stream:integer)
Argument
stream 
The stream number
Example
The following saves the file ID of the default output before switching output to the file mylog.txt. Subsequently, the file ID of the current output stream is saved and the default output is again selected.
def_out:= getfid(F_OUTPUT)
fopen("mylog.txt", F_OUTPUT)
  ...
my_out:= getfid(F_OUTPUT)
fselect(def_out)
Further information
1. This procedure selects the given stream as the active input, output or error stream. The concerned stream is designated by the opening status of the given stream (that is, if the given stream has been opened for reading, it will be assigned to the default input stream). The stream number can be obtained with the function getfid.
2. The default input, output and error streams have respectively numbers 0, 1 and 2.
3. An IO error will be raised if the requested file ID does not exist.
Related topics

© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.