TSP (libtsp/FL) - FLfReadData

## FLfReadData

#### Routine

int FLfReadData (const char Fname[], int MaxNval, float x[])

#### Purpose

Read numeric data in text form from a file

#### Description

This procedure reads floating point numeric data from a file. The file contains data in text form. Data fields are free format, with data values separated by white-space (as defined by isspace). Zero or more data values can appear in each line of input. Commas can also be used to separate data values, but only within a line, i.e. a comma should not appear at the end of a line. A "!" character marks the beginning of a comment that extends to the end of the line.

This routine prints an error message and halts execution on detection of an error.

#### Parameters

<- int FLfReadData
  Number of values returned
-> const char Fname[]
  File name
-> int MaxNval
  Maximum number of values to be returned
<- float x[]
  Array of output values

#### Author / revision

P. Kabal Copyright (C) 1997 / Revision 1.7 1997/10/14

#### See Also

FLfWriteData

Main Index libtsp