home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sources / wanted / 4139 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.7 KB  |  47 lines

  1. Newsgroups: comp.sources.wanted
  2. Path: sparky!uunet!caen!umeecs!nova!ellis
  3. From: ellis@nova.gmi.edu (Stew Ellis)
  4. Subject: Re: Add an e-o-f
  5. Message-ID: <ellis.715117349@nova>
  6. Sender: news@zip.eecs.umich.edu (Mr. News)
  7. Organization: GMI Engineering&Management Institute, Flint, MI
  8. References: <1992Aug27.034554.29722@mixcom.com>
  9. Date: Sat, 29 Aug 1992 19:42:29 GMT
  10. Lines: 35
  11.  
  12. ggvvgg@mixcom.com (Dave Fenske) writes:
  13.  
  14. >I have heard that such programs actually do exist.  I'm in need of a dos
  15. >utility which will append and e-o-f to a file which is recently closed,
  16. >but which may be missing the actual ^Z.
  17.  
  18. >A possible scenario might be a file which is diverted from, let's say,
  19. >a plotting device.  Some other programs (particularly network utilities)
  20. >might not deal properly with a file which technically doesn't end.
  21.  
  22. >Any help would be greatly appreciated.
  23.  
  24. >DF
  25.  
  26. DOS has this capability built in.  The manual entry for COPY details the /b
  27. and /a switches.
  28.  
  29. I used to have to use this to go back and forth between two editors, one
  30. that did not care about ^Z and one that did.
  31.  
  32. If you have a file that lacks the ^Z, file.noz,
  33.  
  34. copy /b file.noz file.ctz /a
  35.  
  36. This should help.  Most modern dos programs no longer use the ^Z, which is a
  37. holdover of CPM's inability to tell exactly how many bytes a file had.
  38. Properly-written dos programs now check the directory entry to see exactly
  39. how many bytes the file contains.
  40.  
  41.  
  42. --
  43. --                                                        ___________________
  44.   R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  45.   Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  46.   Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
  47.