home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / misc / 41575 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!pan.mc.ti.com!rgam.sc.ti.com!rgammon
  3. From: 5692330@mcimail.com  (Robert Gammon)
  4. Subject: Re: Zero-length files
  5. Message-ID: <930107180028@rgam.sc.ti.com>
  6. Nntp-Software: PC/TCP NNTP
  7. Lines: 22        
  8. Sender: usenet@pan.mc.ti.com (USENET News System)
  9. Organization: Texas Instruments Materials and Controls Group
  10. References: <1ierslINNriq@usenet.INS.CWRU.Edu>
  11. Date: Thu, 7 Jan 1993 23:00:28 GMT
  12.  
  13. In article <1ierslINNriq@usenet.INS.CWRU.Edu> al919@cleveland.Freenet.Edu (Bruce Halco) writes:
  14.  
  15.  >> 
  16.  >> I can't find the original posting, but someone asked about
  17.  >> making zero-length files.  In DOS you can do this with
  18.  >> 
  19.  >>         REM > FOO.BAR
  20.  >> 
  21.  >> I haven't tried this in OS/2.  That can be an exercise for the 
  22.  >> reader :-)
  23.  
  24. Ahh, but this is not what the original poster was seeking.  Yes, this
  25. creates a file with a listed size of 0 bytes, BUT, a minimum allocation
  26. unit is still used (512 bytes, a single sector with HPFS, more with FAT).
  27. Our PC file systems insist on allocating at least one allocation unit to
  28. every file (not an unreasonable assumption since most of us have little or
  29. no need for such capability).
  30. --
  31. Regards,
  32. Robert Gammon
  33. (713)-274-3299       (voice)
  34. (713)-274-2324       (fax)
  35.  
  36.