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

Read


Platform Objects


Description

Returns an iSequentialStream that holds the file's content. This is the only way to read binary files (can be saved as database field).

Syntax


Function Read( filename [,hint] )

filename (input, string) - the file to be read (only works with text files) 
hint (input, string) - optional string describing how to open the file. 

Return value


When the hint parameter is present and contains the word "text" the function returns a text variant. Otherwise it returns iSequentialStream

See also

Platform Objects and Methods
target.file.Move
target.file.Rename
target.file