How to judge that there is no content in a TXT document
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Originally posted by namejm at 2006-8-23 00:14:
What kind of document is considered an empty document? If no content is considered an empty document, then the method of judging the file size will not work, because if you enter N spaces and save it, the file size must not be 0...
Originally posted by IceCrack at 2006-8-23 14:07:
I also think that judging the file size is also possible. A file with N spaces has a size.
So using the size is okay.
Second, even if the size of a file with N spaces is 0 bytes. Such a file is also meaningless. So it can also be ignored