Fileoutput in programs?
Fileoutput in programs?
(OP)
Hi all,
I have a very big program/procedure in 'MathCad 2001 Pro' that takes more than one hour for calculation. Sometimes it never comes to an end.
How can I put an interim result to a file while the program is running? ('PRNSCHREIBEN' doesnt work in programs)
If that would be possible, I would be able to look in this file with an editor and know how far the calculation already is and why it doesn't converge.
Many thanks,
Christian (TU Chemnitz, Germany).
I have a very big program/procedure in 'MathCad 2001 Pro' that takes more than one hour for calculation. Sometimes it never comes to an end.
How can I put an interim result to a file while the program is running? ('PRNSCHREIBEN' doesnt work in programs)
If that would be possible, I would be able to look in this file with an editor and know how far the calculation already is and why it doesn't converge.
Many thanks,
Christian (TU Chemnitz, Germany).
RE: Fileoutput in programs?
writeprn(myvariable, "myfilepath")
Where myvariable is the variable or matrix to be written out, "myfilepath" is a string containing the complete path to your file.
Now I have looked at it I am not sure whether myvariable and "Myfilepath" should be the other way round - experiment.
RE: Fileoutput in programs?
Here is a screenshot:
Bye,
Christian.
RE: Fileoutput in programs?
The actual syntax is WRITEPRN(filename,A) or APPENDPRN(filename,A).
Bung
Life is non-linear...