www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D binary io functions

reply Andy Balba <pwplus7 gmail.com> writes:
going nuts trying to figure out which D functions will read/write 
binary files
Aug 29 2020
next sibling parent starcanopy <starcanopy protonmail.com> writes:
On Sunday, 30 August 2020 at 06:00:20 UTC, Andy Balba wrote:
 going nuts trying to figure out which D functions will 
 read/write binary files
For starters: https://dlang.org/phobos/std_stdio.html#.File.byChunk https://dlang.org/phobos/std_stdio.html#.File.rawRead https://dlang.org/phobos/std_stdio.html#.File.rawWrite https://dlang.org/phobos/std_stdio.html#.File.lockingBinaryWriter https://dlang.org/phobos/std_file.html#read https://dlang.org/phobos/std_file.html#write https://dlang.org/phobos/std_file.html#append
Aug 29 2020
prev sibling parent reply Arjan <arjan ask.me.to> writes:
On Sunday, 30 August 2020 at 06:00:20 UTC, Andy Balba wrote:
 going nuts trying to figure out which D functions will 
 read/write binary files
see this blog: http://nomad.uk.net/articles/working-with-files-in-the-d-programming-language.html
Aug 30 2020
next sibling parent Andre Pany <andre s-e-a-p.de> writes:
On Sunday, 30 August 2020 at 10:02:09 UTC, Arjan wrote:
 On Sunday, 30 August 2020 at 06:00:20 UTC, Andy Balba wrote:
 going nuts trying to figure out which D functions will 
 read/write binary files
see this blog: http://nomad.uk.net/articles/working-with-files-in-the-d-programming-language.html
This blog is fantastic. It would be great if it could be included into tour.dlang.org. Kind regards Andre
Aug 30 2020
prev sibling parent Andy Balba <pwplus7 gmail.com> writes:
On Sunday, 30 August 2020 at 10:02:09 UTC, Arjan wrote:
 On Sunday, 30 August 2020 at 06:00:20 UTC, Andy Balba wrote:
 going nuts trying to figure out which D functions will 
 read/write binary files
see this blog: http://nomad.uk.net/articles/working-with-files-in-the-d-programming-language.html
Yes, Great, many thanks! This is the kind of online docs Dlang needs more of. Links for these "great docs" addressing various topics should be collected into a Dlang.org online file, where each "great doc" contains a link, followed by a brief description. Getting good and useful, online file-io docs for C++ takes a few minutes, but getting equivalent useful information on Dlang functions took me hours, with no successful outcome. IMHO Dlang.org online doc related to file io are too terse to be useful to anyone trying to learn Dlang, and are only useful to those that already familiar with them and who only need a "syntax reminder"
Aug 30 2020