home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / utility / 54 / utl / toascii.doc < prev    next >
Encoding:
Text File  |  1986-09-18  |  1.9 KB  |  49 lines

  1. Docs for TOASCII.C by Dan Brotherton
  2.  
  3. Purpose: To strip (replace with blanks, actually) all nonprintable characters
  4.  from an ascii text file. CR and LF are left in, and tabs are expanded.
  5.  
  6.  This program will remove the garbage at the end of a text file downloaded
  7. with XMODEM. It should also make any word processor file at least readable.
  8.  
  9. ====================
  10.  
  11. Calling: TOASCII -t# <f1.xxx >f2.xxx
  12.  Where # is the number of spaces used to replace a tab. Default is 8.
  13.  
  14.  Program reads stdin and writes stdout, so may be used in a pipe, or with
  15. IO redirection as shown. I normally use this with Micro C-Shell, but I
  16. would imagine other shells would also work. If you are using this from
  17. the desktop, make sure the program is named TOASCII.TTP, or is installed as
  18. a TOS takes parms program.  The redirection shown above will then work
  19. from the TOS dialog box.
  20.  
  21.  If the output file already exists, the system will delete it.
  22.  
  23. ====================
  24.  
  25. Note on tab expansion: I tested this with files created using Beckemeyer
  26. Development Tools ENTAB program. This program produces (as far as I can tell)
  27. the exact tab expansion that Beckemeyer's DETAB program comes up with.
  28. However, there seems to be a bug in his ENTAB program that places one too
  29. few tabs on a line that ends 1 character short of a tab setting. If you use
  30. his SHOW program on a file that has been ENTABed, you will see what I mean.
  31.  
  32. ====================
  33.  
  34. One of these days I'll get around to modifying this mess to accept file
  35. names on the command line, and adding an option to replace control chars
  36. with the ^@ representation..........
  37.  
  38. If someone beats me to it, please let me know. I'd like a copy.
  39.  
  40. ====================
  41.  
  42. Please forward comments/questions to:
  43.  
  44.     GEnie    D.BROTHERTON
  45.     Delphi   LOBODAN
  46.     CIS      74746,3307
  47.  
  48. Hope it's helpful, and enjoy!
  49. əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə