std.file read with start position

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 24 15:01:33 PDT 2014


On 6/24/14, 10:07 AM, Etienne wrote:
> On 2014-06-24 12:56 PM, H. S. Teoh via Digitalmars-d wrote:
>> On Tue, Jun 24, 2014 at 12:23:08PM -0400, Etienne via Digitalmars-d
>> wrote:
>>> I'm currently brainstorming a persistent database scheme and it
>>> surprised me that random-access reading/writing isn't implemented in
>>> std.file. With SSDs becoming more commonplace, this practice is just
>>> fine. Any other reason for this?
>>
>> std.file? Shouldn't you be looking at std.stdio?
>>
>>
>> T
>>
>
> I did, couldn't find a way to read a specific length (serialized data)
> so std.file seemed more of a fit for that.

std.file -> files are handled as a unit (file is opened and closed 
within the same function)

std.stdio -> files are first-class


Andrei


More information about the Digitalmars-d mailing list