On Friday, 8 December 2017 at 09:40:18 UTC, Vino wrote:
Hi All,

Request your help on how to check whether a given file is empty, I tried the getSize from std.file but no luck as in windows 7 is the file is empty the size of the file is 0 bytes but in Windows 2003 if the file is empty the size of the file show as 2 bytes.


From,
Vino.B

Was it the same file on Windows 7 and Windows 2003?
Maybe the file on Windows 2003 had a byte order mark or carriage return + newline characters.

Reply via email to