Re: D binary io functions

2020-08-30 Thread Andy Balba via Digitalmars-d-learn

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"


Re: D binary io functions

2020-08-30 Thread Andre Pany via Digitalmars-d-learn

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


Re: D binary io functions

2020-08-30 Thread Arjan via Digitalmars-d-learn

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


Re: D binary io functions

2020-08-29 Thread starcanopy via Digitalmars-d-learn

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


D binary io functions

2020-08-29 Thread Andy Balba via Digitalmars-d-learn
going nuts trying to figure out which D functions will read/write 
binary files