GETFILELN Name
GETFILELN Purpose
Get a line from a text file.
Category
Calling Sequence
txt = getfileln(file) Inputs
file = text file name. in
Keyword Parameters
Keywords
LINE=L file line number to return. First = 1.
KEY=K Keyword to search for. First line in
which keyword K is found is returned as txt.
File is searched up to line L (def=1000).
START=S line to start keyword search.
FOUND=F line in which keyword was found.
ERROR=e error flag. 0=ok, 1=file not opened,
2=LINE out of range, 3=KEY not found.
Outputs
txt = returned text string. out
Common Blocks
Notes
Notes: If LINE or KEY not specified the first line
is returned. If both LINE and KEY are specified
then the search for KEY is limited to LINE lines.
If LINE is out of range or KEY is not found then
a null string is returned.
Modification History
R. Sterner, 9 Mar, 1990
R. Sterner, 26 Feb, 1991 --- Renamed from getfileline.pro
Copyright (C) 1990, 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.