home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 December / simtel1292_SIMTEL_1292_Walnut_Creek.iso / msdos / statstcs / copyfix.arc / COPYFIX.DOC < prev    next >
Text File  |  1989-07-24  |  3KB  |  46 lines

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