IUserAccessiableAppendFileText Method |
This function appends the given text inText into a file created and saved on the device / PC (add inText to the end of the text that exits in the given file).
As the function is Asynchronous, when the file is actually written the callback function void OnWriteFileTextResult(String inFileName, bool inSuccess, bool inAppended)) is called
and it includes the filename, success (read or not) and in this case the inAppended will be returned as true.
You need to override it in your Advanced Scripts to perform what you need in case of failure.
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax void AppendFileText(
string inFileName,
string inText
)
Parameters
- inFileName
- Type: SystemString
The full file path - inText
- Type: SystemString
the text to add to the file
Return Value
Type:
void
Examples
AppendFileText ("$ROOT$/MyTxtFile.txt", "Good morning.") will open the file "MyTextFile.txt" that is saved under the Root directory on the device, and add the text "Good morning" in the end of file.
If "MyTextFile" doesn't exit, it will be automatically created.
See Also