SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.file‎ > ‎

GetText


Platform Objects


Description

Returns the text within a file.

Syntax


target.file.GetText( file )

file (input) - file that you want to work with 


Return value


This function returns the contents of the specified file as a string. 

Sample

'---------- Start ----------
Function Start
trg.Message( target.file.GetText( "C:\FileTestFolder\trgFileSample.txt" ) )
End Function

See also


Platform Objects and Methods
target.file.GetSize
target.file.IsLocked
target.file