spacer
   
   
Mailtraq - the Complete Email Server
   
spacer

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

spacer
spacer

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)
spacer


Download Trial
Buy now
Screenshots
Requirements
Feature Tree
FAQs
What's new
Print this page Print this Page
Mailtraq 2.12 PDF Datasheet
Send a friend an email about Mailtraq ShareMailtraq - Email Server at Delicious Mailtraq - Mail Server at digg Mailtraq - Mail Server at FacebookMailtraq - Email Server at stumbleupon Tweet about Mailtraq

 

 

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