randomIO, std.file, core.stdc.stdio

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 26 17:38:30 PDT 2016


On Tuesday, 26 July 2016 at 16:35:26 UTC, Charles Hixson wrote:
> That's sort of what I have in mind, but I want to do what in 
> Fortran would be (would have been?) called record I/O, except 
> that I want a file header that specifies a few things like 
> magic number, records allocated, head of free list, etc.  In 
> practice I don't see any need for record size not known at 
> compile time...except that if there are different
> versions of the program, they might include different things, 
> so, e.g., the size of the file header might need to be variable.

it looks like you want a serialization library. there are some: 
http://wiki.dlang.org/Serialization_Libraries


More information about the Digitalmars-d-learn mailing list