FPRINT
Name
FPRINT
Purpose
Turn print statements into a text file.
Category
Calling Sequence
fprint,a1,a2,a3,...
Inputs
a1,a2,a3,... = args to fprint. in
May have up to 20.
Keyword Parameters
Keywords
BUFFER='key' Use a file indicated by 'key' instead
a default file. Use BUFFER='key' on each call to
fprint. Use with /INIT to get started, then
use this keyword on following calls.
/INIT Start a new text file.
May also give an initial text array: INIT=txt.
ADD=txt Add given text array to text file.
OUT=txt Return text from the file.
/PRINT print the entire text file to screen.
/NUMBERS Include text line indices for the /PRINT option.
/SCREEN Print the added line or lines to the screen also.
SAVE=file Move the default text file to the given text file.
/QUIET do not show messages.
/REVERSE reverse text order (for /PRINT, OUT=, or SAVE=).
FORMAT=fmt Optional print format.
ERROR=err 0=ok, 1=error if OUT or /PRINT used with no text.
Outputs
Common Blocks
fprint_com
Notes
Notes: Intended to make it easy to take a set of print
statements in a program and change them to build up
a text file. Uses the IDL string function in place
of the print statement to handle the arguments. Can
then return the text array built up from multiple
fprint calls and use it elsewhere.
Modification History
R. Sterner, 2014 Oct 15 from tprint.pro
Copyright (C) 2014, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.