I just had the idea of doing something like this to find out:
I made two files using MS Edit in DOS. One was test0.txt. I saved it as empty. The other is test1.txt. I hit space once and saved that one.
Then I issued this command:
DIR /v > test.txt
Test.txt looked like this:
Volume in drive C has no label
Volume Serial Number is 134F-19FD
Directory of C:\TEST
File Name Size Allocated Modified Accessed Attrib
. <DIR> 05-19-03 10:40p 05-19-03 D .
.. <DIR> 05-19-03 10:40p 05-19-03 D ..
TEST0 TXT 0 0 05-19-03 10:41p 05-19-03 A test0.txt
TEST TXT 0 0 05-19-03 10:49p 05-19-03 A test.txt
TEST1 TXT 3 4,096 05-19-03 10:41p 05-19-03 A test1.txt
3 file(s) 3 bytes
2 dir(s) 4,096 bytes allocated
1,865,256,960 bytes free
3,226,464,256 bytes total disk space, 42% in use
Yeah, small drive. I got it in the garbage.
The text formatting makes it hard to read, but you can see that test1.txt totals 3 bytes (my mistake... I'm guessing CR and LF?) and test0.txt totals 0. File test1.txt uses a whole 4k allocation unit, but test0.txt uses 0.
The conclusion is that a 0-byte file uses no file allocation units. (ignoring the FAT itself... file names, etc.)
The test.txt file is
here for your viewing pleasure.
