September 30, 2015 Re: A new article about working with files in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to extrawurst | On Wednesday, 30 September 2015 at 08:32:29 UTC, extrawurst wrote:
> I agree on that, these examples should be added to the ddocs of phobos.
>
> -- Stephan
I might do that myself. :)
|
October 01, 2015 Re: A new article about working with files in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | On Wednesday, 30 September 2015 at 17:03:25 UTC, Gary Willoughby wrote:
> On Wednesday, 30 September 2015 at 08:32:29 UTC, extrawurst wrote:
>> I agree on that, these examples should be added to the ddocs of phobos.
>>
>> -- Stephan
>
> I might do that myself. :)
As always in dland: you better do it yourself ;)
-- Stephan
|
October 01, 2015 Re: A new article about working with files in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to ponce | On Monday, 28 September 2015 at 12:19:21 UTC, ponce wrote: > I also like how readable your blog is. Mm? http://abload.de/img/tmpviqau.png |
October 01, 2015 Re: A new article about working with files in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | On Monday, 28 September 2015 at 11:41:37 UTC, Gary Willoughby wrote:
> Article:
> http://nomad.so/2015/09/working-with-files-in-the-d-programming-language/
>
> Reddit link:
> https://www.reddit.com/r/programming/comments/3mosw7/working_with_files_in_the_d_programming_language/
A little criticism:
write(file, read(file, size));
truncate by reading/writing is not good sample at least for official docs. It is not efficient. You can use POSIX truncate or _chsize Windows system calls for truncation to specific length. For zero it is simpler: open("file", "w+");
std.outbuffer;
In Java world you can write OutputStream out = new BufferedOutputStream(new FileOutputStream(fileName), BUF_SIZE);
It is not clear how to combine OutBuffer and write in such way.
|
November 05, 2015 Re: A new article about working with files in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | On Monday, 28 September 2015 at 11:41:37 UTC, Gary Willoughby wrote: > Article: > http://nomad.so/2015/09/working-with-files-in-the-d-programming-language/ > > Reddit link: > https://www.reddit.com/r/programming/comments/3mosw7/working_with_files_in_the_d_programming_language/ I have translated this article into Russian: http://habrahabr.ru/post/270189/ |
Copyright © 1999-2021 by the D Language Foundation