home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / LANGUAGS / PASCAL / STRINGS.LBR / -READ.ME next >
Text File  |  2000-06-30  |  1KB  |  34 lines

  1. If using PascalP version 3.1.9 up, READ(f, string), LENGTH(string)
  2. standard procedures may be used in place of READSTRING and LENGTH
  3. in this package.  Similarly you may use READLN(f, string).  These
  4. standard procedures also all use the default input file when the
  5. file specification is omitted.
  6.  
  7. The new READ function is slightly different from READSTRING in that
  8. it stops reading when the string is full, or on eoln, whichever
  9. comes first.  This allows a long line to be read into multiple
  10. strings.  If you want to flush the line remnant use READLN.  In 
  11. addition you do not supply the maxstring parameter.
  12.  
  13. Simply delete the READSTRING and LENGTH procedures from STRINGS.INC
  14. file if you have version 3.1.9 up.  Make suitable modifications in
  15. the TEST program.  Note that 3.1.9 will also accept this package
  16. unchanged.
  17.  
  18. 3.1.9 also provides
  19.  
  20.    STRINGCP(VAR s1, s2 : string) : integer;
  21.  
  22.                     function, which compares strings.  It returns
  23. -1, 0, +1 for s1 >, =, < s2., and thus makes the STRINGCLEAN
  24. function in this package unnecessary. 
  25.  
  26. I am not altering this package so that it will continue to function
  27. on earlier versions, and on Standard Pascal systems.  I have however
  28. crunched the members of this library.
  29.  
  30. The PascalP 3.1.9 manual gives a further explanation of the added 
  31. string functions.
  32.  
  33.     C.B. Falconer (86/02/12)
  34. ≡≤