ReadFile Function

Description:

Th ReadFile function returns a string containing the content of the file specified  in the 'filepath' parameter.
The function returns 1 on success and 0 on failure.

Format:

result = ReadFile(filePath, strFileContentVariable);

Parameter:

filePath

A string expression defining the path of the file to open

strFileContentVariable

String variable : the content of the file will be stored in the string variable

Example:

string strFileContent;
intger iResult;

iResult = readFile ("c:\\program files\\AgileLoad\\AgileLoad\\repository\\data\\upload.pdf", strFileContent);





Go back to the Learning center:


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