Re: Check whether a file is empty.

2017-12-09 Thread FreeSlave via Digitalmars-d-learn
On Friday, 8 December 2017 at 19:13:20 UTC, vino wrote: Hi, The code is same just copy pasted the code form Windows 7 into Windows 2003 and executed, in Windows 7 the log file is of size 0 where as in windows 2003 the log file is of size 2 byte where the log file in both the server is

Re: Check whether a file is empty.

2017-12-08 Thread codephantom via Digitalmars-d-learn
On Friday, 8 December 2017 at 19:13:20 UTC, vino wrote: Hi, The code is same just copy pasted the code form Windows 7 into Windows 2003 and executed, in Windows 7 the log file is of size 0 where as in windows 2003 the log file is of size 2 byte where the log file in both the server is

Re: Check whether a file is empty.

2017-12-08 Thread vino via Digitalmars-d-learn
On Friday, 8 December 2017 at 12:25:19 UTC, FreeSlave wrote: 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

Re: Check whether a file is empty.

2017-12-08 Thread FreeSlave via Digitalmars-d-learn
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

Re: Check whether a file is empty.

2017-12-08 Thread Kagamin via Digitalmars-d-learn
Other functions that can be used for this are GetFileInformationByHandle, GetFileSizeEx, SetFilePointerEx or File.size in phobos.

Check whether a file is empty.

2017-12-08 Thread Vino via Digitalmars-d-learn
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