Write Command

Description:

This command writes a string into an external file that is currently opened (with the FOR OUTPUT or FOR APPEND option).

Format:

WRITE stringToWrite TO fileId;

Parameters:

stringToWrite

A string expression to write in file.

fileId

A FILE variable that was used in a previous OPEN command.

Example:

FILE DataFile;
STRING szUser;

OPEN "OutputFile" AS DataFile FOR OUTPUT;
WRITE "John Smith" TO DataFile;





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap