The file.create( ) method creates a file on disk according to the properties of the file object.
If necessary, the function creates the folder hierachy as described in the file.platformPath or file.path properties. If the file already exists on disk, the function does nothing (no error is thrown) and returns false.
Returned value
- true if the file is created successfully;
- false if a file with the same name already exists or if an error occured.
Creation of a preferences file in the database folder:
C_BOOLEAN($created)
$created:=File("/PACKAGE/SpecialPrefs/"+Current user+".myPrefs").create()