Is there any possibility to have the Print executable statement, but the output goes to a different file for each term? A possible syntax would be +"<filename>" option (instead of +f):
Here the file name is also a format string, and then the objects are also consumed for the file name. For example,
Print +"foo-%$.out", "%$", $n, $expr;
Because the number of output files can be too many, the Print statement should immediately close the file after writing. Maybe just in the "w" mode or just in the "a" mode. Preferably the first Print for each file in the "w" mode and after that in the "a" mode, which requires keeping the set of file names for already opened files in a memory efficient way.
Is there any possibility to have the
Print
executable statement, but the output goes to a different file for each term? A possible syntax would be+"<filename>"
option (instead of+f
):Here the file name is also a format string, and then the objects are also consumed for the file name. For example,
Because the number of output files can be too many, the
Print
statement should immediately close the file after writing. Maybe just in the "w" mode or just in the "a" mode. Preferably the firstPrint
for each file in the "w" mode and after that in the "a" mode, which requires keeping the set of file names for already opened files in a memory efficient way.