Mailtraq - the Complete Email Server
   

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

Search for:

Advanced search

While()

In a while loop the content is repeatedly evaluated until the continuation expression evaluates to false. Each time the content is evaluated, the result is appended to the function result. This is similar to the while do ... construct found in many languages.

result := While( continuation , content )

continuation
An expression evaluated just before each iteration which terminates the loop if "FALSE"
content
An expression which is evaluated each iteration with the result being appended to result
result
The concatenation of the results from each iteration
// Transfer the contents of the file input.txt to the file output.txt
a := OpenFile("input.txt");
b := CreateFile("output.txt");
While(Not(EOF(a)),
  Write(b, Read(a))
);
CloseFile(a);
CloseFile(b)
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.