Check whether a file is empty.
FreeSlave
freeslave93 at gmail.com
Fri Dec 8 12:25:19 UTC 2017
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.
More information about the Digitalmars-d-learn
mailing list