Previous Topic: Is_Fifo - Check the File for the 'Pipe Special' AttributeNext Topic: Is_G_R - Check the File for the 'Group Read' Attribute


Is_File - Check the File is a Regular File

Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE.

The Is_File function checks the file for the specified attribute.

This file content function has the format:

Is_File(filename as String) as Boolean
filename

Identifies a file path.

This function returns TRUE if the file is a regular file; otherwise, the function returns FALSE.

Example: Is_File function

If Is_File(Argv(1)) Then
	print(Argv(1) + " indicates 'File'.")
Else
	print(Argv(1) + " does not indicate 'File'.")
End If