-
Notifications
You must be signed in to change notification settings - Fork 112
Interactions with files Orion Assistant
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
Create a file object.
An attempt to open a file (or create a new one) by the filePath.
Result: true if the file is successfully opened.
An attempt to open the file by the filePath to the write-in (the pointer to the data is placed at the end of the file).
Result: true if the file is successfully opened.
Verify the validity of the opened file.
Result: true if the file is open.
Close the file.
Read the line before the line break (\ n).
Result: The result of reading the data.
Read the word (up to blank-space " ").
Result: The result of reading the data.
Record the data string and move the string (\ n).
Write down the data.
Deletes file at filePath.
If filePath was an empty string or null reference, it'll close and try delete fileObject.