
Using wfprintf with "line too long" problem

LE1202
Hi
I have a problem with "line too long" while using wfprintf
I got a lot of waves to deal with, after that, I need to out put all these waves by wfprintf
But, as you can see, the following command I try was way too long
I try to search some command like "..." as Matlab, which mean continue code on next line
Did Igor have command like that which could help me out ?
Or is there any other ideal which could help me work out ?
Thanks for your help.
Open/A/P=$(path) refNum as "weather.10min_"+Smm
wfprintf refNum, "%s%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%9.3f%12.3f\r\n" $("M"+num2str(Start_month)),$("M"+num2str(month)+"_wave0"),$("M"+num2str(month)+"_wave1"),$("M"+num2str(month)+"_wave2"),$("M"+num2str(month)+"_wave3"),$("M"+num2str(month)+"_wave4"),$("M"+num2str(month)+"_wave5"),$("M"+num2str(month)+"_wave6"),$("M"+num2str(month)+"_wave7"),$("M"+num2str(month)+"_wave8"),$("M"+num2str(month)+"_wave9"),$("M"+num2str(month)+"_wave10"),$("M"+num2str(month)+"_wave11"),$("M"+num2str(month)+"_wave12"),$("M"+num2str(month)+"_wave13"),$("M"+num2str(month)+"_wave14"),$("M"+num2str(month)+"_wave15")
Close refNum
What Igor Pro Version?
November 28, 2018 at 04:25 am - Permalink
Igor Pro 8 supports commands of up to 2500 bytes so your wfprintf command should work in Igor Pro 8.
Here is a function that should work in your Igor version and is easier to read and more efficient:
November 28, 2018 at 07:25 am - Permalink
In reply to Igor Pro 8 supports commands… by hrodstein
Thanks a lot
I'm working on Igor Pro 6.22
I'll try the function your provide, thank you again.
November 28, 2018 at 06:02 pm - Permalink