10.3.1 PRSTR


next up previous contents
Next: 10.3.2 STR2ARR Up: 10.3 Miscellaneous Previous: 10.3 Miscellaneous

10.3.1 PRSTR

PRSTR prints any string array to the terminal or a file, one element per line. For terminal output, the default is to print by screen (Unix ``more'' behavior). The /compress switch removes null lines and excess white space prior to output. This is useful (for example) for printing FITS headers to terminal. /hc will create a hard copy to the printer selected by PPRINT. file=file will write the results to a file.
IDL> prstr, strarray
 
IDL> prstr, strarray, /print

IDL> prstr, strarray, /compress

IDL> prstr, strarray, lun


ydac@mssly1.mssl.ucl.ac.uk