Click or drag to resize
IUserAccessiableReadFileText Method
This function reads the text in a given file saved on the device / PC. As the function is Asynchronous, when the file is actually read the callback function void OnReadFileTextResult(String inFileName, bool inSuccess, String inFileText) is called and it includes the filename, success (read or not) and a String array of the lines in the file it read. You need to override it in your Advanced Scripts to perform what you need in case of failure or perfrom any action with the read text.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
void ReadFileText(
	string inFileName
)

Parameters

inFileName
Type: SystemString
The full file path

Return Value

Type: 
void
Examples
ReadFileText("$ROOT$/MyTxtFile.txt") will open the file "MyTextFile.txt" that is saved under the Root directory on the device, and read the text that is written in this file.
See Also