Skip to main content

SaveTextAsLocalFile

Structure

SaveTextAsLocalFile(sText, sFileName: String): Char

Parameters

ParameterTypeDescription
sTextStringThe text to be saved
sFileNameStringThe file name

Return value

Char

'1' = Success, '0' = Failure

Description

Use this function to save the text in sText to a file. The file will be created in your IndySoft \Temp directory. If you would like to save it another location on your network then use SaveTextAsFile.