www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Why File is exists in std.stdio and in std.file?

reply Suliman <evermind live.ru> writes:
Just interesting. Is there any rational reasons for this decision?
Apr 25
next sibling parent Daniel =?UTF-8?B?S296w6Fr?= via Digitalmars-d-learn writes:
V Tue, 25 Apr 2017 07:05:51 +0000
Suliman via Digitalmars-d-learn <digitalmars-d-learn puremagic.com>
napsáno:

 Just interesting. Is there any rational reasons for this decision?
No it isn't. File is only in std.stdio;
Apr 25
prev sibling parent FreeSlave <freeslave93 gmail.com> writes:
On Tuesday, 25 April 2017 at 07:05:51 UTC, Suliman wrote:
 Just interesting. Is there any rational reasons for this 
 decision?
There's no File in std.file. It's located in std.stdio. std.stdio and std.file are different modules. The first one has safe wrappers around stdio.h from C library, the second one provides operations on files as unit.
Apr 25