basic.%freopen C Function/BASIC Program

basic.%freopen

Command basic.%freopen C Function/BASIC Program
Applicable release versions: AP/Unix
Category BASIC Program (486)
Description substitutes the named file specified by "string" in place of the opened stream "stream1".

The stream is returned as a pointer to a character or 0 (zero) if an error has occurred. System(0) is then set to the error number.
Syntax stream=(char*)%freopen( string, type, (char*)stream1)
Options
Example
Purpose
Related basic.cfunc
basic.%fopen
basic.%fdopen
basic.cfunction
basic.%fclose