>  Docs Center  >  Libraries  >  Buie  >  FILELINE
Libraries

FILELINE

FILELINE

Name


  fileline

Purpose (one Line Only)


  Returns one line from a file at a chosen location.

Description


Category


File I/o


Calling Sequence


  line=fileline(filename,linenumber)

Inputs


  filename :String, name of file to read
  linenumber:The line number of the file to read (0 indexed)

Optional Input Parameters


Keyword Input Parameters


  HEADER : Optional header to be skipped in the file. Default is no
                header. If supplied, this string (or string) array must
                match the first N lines of the file or it will be an error.
                The header, if provided, is not counted in the line count
                for the line to be returned.

Outputs


  return value is the specified line of the file (string). If an error
    occurs, the return value is an integer value of -1. If you get a string,
    there was no error.

Keyword Output Parameters


Common Blocks


Side Effects


Restrictions


Procedure


Modification History


  2004/07/13, Written by Maureen Teyssier, REU Lowell Observatory
  2004/07/15, MWB, incorporated into library.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us