Appends a string to the end of a file if it does not contain a specified string.
In v3.1 and earlier
Returns 'Success - No Content' (empty table) if the string is found (file not updated), or the file is not found.
If the file is found and updated the following are returned as a table:
Append the line 'AuthenticationPolicy=optional' if it isn't present in example.conf, regardless of case, making a backup of the file before the append occurs.
This uses the newer
|Notes||Text is appended only if the find string does not exist in the file. Perhaps this method should have been called FindElseAppend.|