Select the active input or output stream.
procedure fselect(stream:integer)
The stream number
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)
Further information
This procedure selects the given stream as the active input or output 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.
Related topics
fclose, fopen, getfid.

If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.