Prototype
CreateFile(FileName)
Description
It creates file passed as parameter.
Parameters
FileName: string showing the path and the name of the file.
Returned value
None.
Notes
None.
Example
// It checks if there is really a directory
Esistente:=DirExists ('c:\files');
// It creates a directory if it doesn't exist
If Esistente<>True then CreateDir('c:\files');
// It checks if there is a file within the directory
Esistente:=FileExists ('c:\files\unfile');
// It creates a file if it doesn't exist
If Esistente=False Then CreateFile('c:\files\unfile');
// It opens the file
UnFile:=FileOpen('c:\files\unfile');
// It executes other operations
// It closes the file
FileClose(UnFile);