I have used ${__stringToFile(,,,,)} string to file function in JMetre 5.2.
Performed read and write operation in an external file using the JMeter config element and String to File Function. While a demonstration I have used cURL import, JSR223 postprocessor and Regular Expression Extractor postprocessor for reading and writing into the external file.