FileClose

Top  Previous  Next

Prototype

 

FileClose(intFileHandle)

 

Description

 

Closes a file.

 

Parameters

 

IntFileHandle: integer value corresponding to the file handle.

 

Returned value

 

None.

 

Notes

 

None.

 

Example

 

// Check if there is a file within the directory

bExists:=FileExists ('c:\file.dat');

 

// Create a file if it doesn't exist

If bExists=False Then CreateFile('c:\file.dat');

 

// Open the file

strFile:=FileOpen('c:\file.dat');

 

// Execute other operations

 

// Close the file

FileClose(strFile);