Previous Page Next Page Contents

fclose -- close a file

Introduction

fclose(n) closes the file specified by the file descriptor n.

Call(s)

fclose(n)

Parameters

n - a file descriptor returned by fopen: a positive integer

Returns

the void object of type DOM_NULL.

Related Functions

finput, fopen, fprint, fread, ftextinput, pathname, print, protocol, read, READPATH, write, WRITEPATH

Details

Example 1

We open a file test for writing. This yields the file descriptor n:

>> n := fopen("test", Write)
                                    17

We close the file:

>> fclose(n): delete n:

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000