Hello, I have a text file in a Sharepoint which I want to read, make changes to and then save back to its original location. I am able to open and make changes to it, but whenever I try to save it I get an error saying:
"Unable to open in ReadWrite mode.
The filename, directory name, or volume label syntax is incorrect."
I'm using the same file path for loading and saving the text file, but only loading works. I have also tried saving the file locally and it works, so it is not an issue with the file. Here is my code (JMP 17.0):
Names Default To Here( 1 );
// load rule data
rules_path = file path in sharepoint
rules = Load Text File(rules_path, JSON);
Save Text File(rules_path, As JSON Expr(rules));