home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / c / copyfx11.zip / COPYFIX.DOC < prev    next >
Text File  |  1990-12-21  |  3KB  |  47 lines

  1. COPYFIX.BAS vs. 1.1 by Jim Groeneveld, 21 December 1990.
  2.  
  3. DESCRIPTION / PURPOSE
  4. ---------------------
  5. COPYFIX converts any ASCII data or text file by adding end-of-line characters
  6. (CR/LF) after any (unlimited) specified number of characters (columns).
  7. Original (data or text) file may contain records with any, unlimited length.
  8. Already present EOL characters (CR/LF) may be included (both with and without
  9. synchronization) or excluded. Only meaningful with fixed formatted data.
  10. No file contents other than CRLF are changed.
  11.  
  12. COPYFIX can carry out 3 different tasks:
  13. 1. in/excl.: reformat an (ascii) database with fixed length records but
  14.              without embedded EOL characters into a database with equal
  15.              length records, separated by CR/LF's;
  16. 2. include : reformat an (ascii) database with (equal length) records, one
  17.              (or a few) record(s) per case, separated by CR/LF's into a
  18.              database with multiple (shorter) records per case;
  19. 3. exclude : reformat an (ascii) database with multiple (short) records per
  20.              case into a database with (less or) one (larger) record(s) per
  21.              case.
  22. 'Infinite' length records (a file of one 'record' without any EOL) may also
  23. be read and written (only limited by the amount of disk space available).
  24.  
  25. LINE INPUT in GWBASIC
  26. ---------------------
  27. In GWBASIC a LINE INPUT reads at most 255 characters within ONE line. If 255
  28. characters are read any following CRLF has not been encountered yet. Any
  29. succeeding LINE INPUT will start from the point where the previous LINE INPUT
  30. was left. If still more than 255 characters are to be read only 255 will be
  31. read, leaving the rest for the eventual next LINE INPUT. If less than 255
  32. characters on the SAME line are to be read, even if only a remaining CRLF, they
  33. are ALL read, INCLUDING the CRLF, but the CRLF are NOT part of the read STRING.
  34. Any following LINE INPUT starts with the NEXT line. If another BASIC (e.g.
  35. BASICA, according to its manual) processes LINE INPUT in a different way the
  36. course of this program may be unpredicted and erroneous, so BE AWARE of your
  37. BASIC version! The number of characters read by a LINE INPUT statement may be
  38. changed ONLY IF NECESSARY by redefining the BASIC variable MAX.LINE.INPUT.LENGTH
  39. in program line 70.
  40.  
  41. Centrum voor Medische Informatica TNO       <Email>              |  |  |\/|
  42. TNO Center for Medical Informatics | GROENEVELD@CMI.TNO.NL  |  \_/  |  |  |
  43. ( CMI-TNO )    | Y. Groeneveld     | GROENEVELD@CMIHP1.UUCP | Jim Groeneveld
  44. P.O.Box 124    | Wassenaarseweg 56 | GROENEVELD@TNO.NL      | Schoolweg 14
  45. 2300 AC Leiden | 2333 AL Leiden    | ...@HDETNO51.BITNET    | 8071 BC Nunspeet
  46. Nederland.     | (+31|0)71-181810  | Fax (+31|0)71-176382   | 03412-60413
  47.