Mailtraq - the Complete Email Server
   

Enstar for Mailtraq email server sales & support
Making world-class Internet technology affordable  

Search for:

Advanced search

CreateFile()

Creates a new, empty text file for writing. The function returns a handle which identifies the file, and is valid until it is released with the CloseFile(), function. Only new files can be written to because the file pointer is maintained at the end of the file. The opened file cannot be accessed by other scripts until its handle has been released. If the specified file already exists it is emptied.

handle := CreateFile( path )

path
Identifies the file to be created by its filing system name. If no path is quoted Mailtraq creates the file in the folder \database
handle
This identifier is used in subsequent references to the file, and should be released using CloseFile(). The null value is returned if the file could not be created.
//Example usage
myfile:= CreateFile("d:\internet\resource\sig-john.txt");
Write(myfile, "\n-- \nJohn Smith");
CloseFile(myfile)
Mailtraq Highlights...
 SMTP Server     Mailtraq SMTP email server video IMAP Server     Mailtraq IMAP email Server video
 POP3 Server     Mailtraq POP3 email server video Proxy Server     Mailtraq proxy email server video
 Webmail Server     Mailtraq webmail email server video Mailing-list Server     Mailing list email server video
 Groupware Services     Mailtraq groupware email services video Spam and Virus control     Spam and virus control email server video

 

   Copyright © 2003 - 2011 Enstar Ltd, Enstar LLC & Fastraq Ltd. All rights reserved. Privacy policy.
   Mailtraq® is a registered trademark of Fastraq Limited.