CreateFile |
Top Previous Next |
Prototype
CreateFile(FileName)
Description
Creates file passed as parameter.
Parameters
FileName: A string containing a valid path and filename.
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);
|