I have a For[...] cycle which calls a function. When the function is at work, it prints some text-string through the command Print[...].
Since I iterate the action of the function for 1000 times, the output printed starts to become very long and Mathematica starts to get slow.
Is there any way to modify the Print command or to send the output buffer into a text file which is instantaneously updated?
Forloop you could print only eachn-th value. Ifiis your loop variable then try:If[Mod[i, n] == 0, Print[...];– mrz Jan 17 '18 at 14:12