Originally posted by namejm at 2006-8-23 00:14:
什么样的文档才算空文档?如果没有内容才算空文档,那么,用判断文件大小的方法则行不通,因为你输入N个空格后保存,文件的大小一定不为0 ...
我倒认为判断文件大小也是可以的。一个是N个空格的文件是有大小的。
所以用大小是可以的。
二即使N个空格的文件大小是0字节。那这样的文件也无意义的。所以也可以忽略的
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...
I actually think that judging the file size is also okay. One is that a file with N spaces has a size.
So it is okay to use the size.
Second, even if the file size of N spaces is 0 bytes. Then such a file is also meaningless. So it can also be ignored