Click or drag to resize
IUserAccessiableReadFileLines Method
This function is a Asynchronous function enabling to read the text seperated into lines in a given file saved on the device / PC. As the function is Asynchronous, when the file is actually read the callback function void OnReadFileLinesResult(String inFileName, bool inSuccess, String[] inFileLines) 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 ReadFileLines(
	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