Closed files cannot be saved to unless editor is closed

When I open a JSON file to read some animation data from it then close the file, I cannot save to it with another application (notepad). I get a message saying ‘Is this file being used by another application’. So how do I get the Editor to relinquish the lock on the file. I used fopen/fclose the std::ifstream and the Unreal FFileHelper::LoadFileToString with all the same problem. I have never come across this problem before, very perplexing

Sorry, I had this code hiding away:

FArchive* saveFile = IFileManager::Get().CreateFileReader(*fullPath);

that wasn’t closing the file. Typical! Found the answer 30 seconds after I posted the question