Command: readf (include readf.e )
  
Syntax: 
  x = readf(fn, st)
  
Description: (st is a sequence)
  Read x, from file or device fn, using format string st. 
  x is a sequence of elements determint by the formats from st 
  and applied to the data of file or device fn. 
  Thus readf always takes exactly 2 arguments.
  The basic formats are: 
  
  %d - read as a decimal integer
  %x - read as a hexadecimal integer
  %o - read as an octal integer       -- not include !
  %s - read as a string of characters
  %e - read as a floating point number with exponential 
  notation
  %f - read as a floating-point number with a decimal
  point but no exponent
  %g - read as a floating point number using either
  the %f or %e format, whichever seems more appropriate
  %% - read the '%' character itself
  
  Field widths can be added to the basic formats, e.g. %5d, or 
  %8.2f. The number before the decimal point is the minimum field
  width to be used. The number after the decimal point is the 
  precision to be used.
  
  If the field width is negative, e.g. %-5d then the value will be 
  left-justified within the field. Normally it will be right-
  justified. If the field width starts with a leading 0, e.g. %08d
  then leading zeros will be supplied to fill up the field. If the
  field width starts with a '+' e.g. %+7d then a plus sign will be
  printed for positive values. 
  
Example 1: 
   rate = readf(myfile,"%8.2f")
   rate : {56.7}   
 
Example 2: 
   name = readf(1,"%15s, %5d\n")

   name :{"John Smith     ",97}

Description: (st is a character)
  Read x, from file or device fn, using a seperation character. 
  x is a sequence of elements determint by the seperation character
  from st and applied to the data of file or device fn. 
  Thus readf always takes exactly 2 arguments.
  The basic seperation character are   , ; = / - 
  (a space canbe used as seperator but donn't do it)
  
Example 3:
  collect = readf(1,',')  -- read a .cvs file
  collect :{"jan","huisjes",230446}
            
See Also: 
   sreadf, open 
  

