Mailtraq - the Complete Email Server

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

Search for:

Advanced search


Opens a text file for reading and returns a handle identifying the file which is valid until released using the CloseFile() function. Each file read operation, using the Read() function, advances a pointer to the next line in the file such that consecutive reads retrieve consecutive lines of text from the opened file. When the end of the opened file is reached, the EOF() function returns true. The same file can be opened for reading by more than one script and more than once in the same script.

handle := OpenFile( path )

Identifies the file to be opened by its filing system name. If no path is provided, the default location of \database is assumed
An integer reference for subsequent references to the open file or nul if the file cannot be opened

Add the contents of the file input.txt to the existing contents, if any, of the file output.txt

a := OpenFile("c:\files\input.txt");
b := AppendFile("c:\files\output.txt");
  Write(b, Read(a))
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.