Can I output some results into new file?

Dear all,
        After a simple calculation, we can use "printf ("Test points : %.3f\\n", \\\$value)" to print the result value. Can  I output the value into a new file (for example file.txt)? How to write the script in Materials studio?  Any help is appreciated.
       Thank you.