runExternalM2ReturnAnswer -- stores a Macaulay2 variable's value in a file, to later be read by the RunExternalM2 package

Synopsis

• Usage:
runExternalM2ReturnAnswer(f,t)
• Inputs:
• f, , the filename
• t, , the variable to store

Description

This function tries to serialize t into the file f, that is, convert it into a standard format for storage. In this case, we convert t into a string using toExternalString. This function is not intended for public use.