IsFile()

Syntax

Result = IsFile(#File)
Description
Tests if the given file number is a valid and correctly initialized file.

Parameters

#File The file to use.

Return value

Returns nonzero if #File is a valid file and zero otherwise.

Remarks

This function is bulletproof and may be used with any value. This is the correct way to ensure a file is ready to use.

See Also

CreateFile(), OpenFile(), ReadFile()

Supported OS

All

<- FlushFileBuffers() - File Index - Loc() ->