previous next top contents index framed top this page unframed
$reOpen closes f, then reopens it (using f.name and the same file record) with the specified openBits (all bits described under open except prompt are valid). It returns TRUE if the reopen was successful, FALSE otherwise. This is useful, e.g., if a file opened read-only needs to be updated; it can be reopened with output set in openBits. The same file record is used, so there is no need to track down all POINTERs to it as there would be if individual calls to open and close were made. $reOpen also provides a way to reposition to the beginning of a sequentially opened file, since $reOpen always repositions the file to position 0L.
MAINSAIL Language Manual, Section 46.26