The RPA documentation for the Write Text File activity states:
You can select this activity to write a specific text in a file. If the file already exists, then the existing text is overwritten. If the file does not exist, the file is created.
Maybe we're the first to actually try and use this(?) but our observed experience is that it fails with a 404 "File Not Found" if the file does not already exist (and halting the flow if "Continue on Error" is unchecked). And if it does exist, it merely appends to it, rather than replacing the contents.
Suggestions on how to create a file? Or replace a file?