Prototype
CreateDir(strDirName)
Description
It creates the directory passed as parameter.
Parameters
StrDirName: string corresponding to the directory name to be created.
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 writes a byte in the file
FileWrite(UnFile,1);
// It closes the file
FileClose(UnFile);