Home Search

DriveWorks Pro 22
SppOpenTextFile

Send Feedback

SppOpenTextFile

Returns the contents of a text file as a single string.

Behavior Change

Version V16-SP0-113 and older reported the following when in error:

#SPPFileMissing!

This function now returns the following when in error:

#SPPFILEMISSING!

If your project references the original error in any rule please allow for this change.

This change allows the function IsErrorString to be used in conjunction with the message returned.

Syntax

SppOpenTextFile([File Name])

Where:

File Name is the full path and extension to the text file to open.

Example

RuleResultMeaning
SppOpenTextFile("C:\DriveWorks\MyWebsites.txt")www.DriveWorks.co.ukWill return the contents of the file MyWebsites.txt.