On 9/6/18 2:30 PM, Steven Schveighoffer wrote:
On 9/6/18 1:07 PM, rikki cattermole wrote:
On 07/09/2018 4:17 AM, Arun Chandrasekaran wrote:
On Thursday, 6 September 2018 at 16:13:42 UTC, hridyansh thakur wrote:
how to read a file line by line in D
std.stdio.File.byLine()
Refer the doc
On 9/6/18 1:07 PM, rikki cattermole wrote:
On 07/09/2018 4:17 AM, Arun Chandrasekaran wrote:
On Thursday, 6 September 2018 at 16:13:42 UTC, hridyansh thakur wrote:
how to read a file line by line in D
std.stdio.File.byLine()
Refer the doc here:
On 07/09/2018 4:17 AM, Arun Chandrasekaran wrote:
On Thursday, 6 September 2018 at 16:13:42 UTC, hridyansh thakur wrote:
how to read a file line by line in D
std.stdio.File.byLine()
Refer the doc here: https://dlang.org/library/std/stdio/file.by_line.html
An example from the doc:
```
On Thursday, 6 September 2018 at 16:13:42 UTC, hridyansh thakur
wrote:
how to read a file line by line in D
std.stdio.File.byLine()
Refer the doc here:
https://dlang.org/library/std/stdio/file.by_line.html
An example from the doc:
```
import std.algorithm, std.stdio, std.string;
// Count
how to read a file line by line in D
to port.
I haven't access file in D and i'm completely confused. What are
iterators in regards to file IO?
that is an issue if
you want to port.
I haven't access file in D and i'm completely confused. What are
iterators in regards to file IO?
There are several ranges that can be used for file IO, for example
http://dlang.org/phobos/std_stdio.html#.File.byChunk and
http://dlang.org/phobos/std_stdio.html
that is an issue if
you want to port.
I haven't access file in D and i'm completely confused. What are
iterators in regards to file IO?
he must have said ranges. A range is like a pair of iterators. It's
heavily used in D.
--
/Jacob Carlborg
On 2013-11-08 04:22, Lionello Lunesu wrote:
However, sometimes it's useful to have polymorphism for accessing
streams, especially when porting C#/java code to D. In that case it
would be pretty trivial to port the base classes to D and implement them
using the D ranges.
For that, there's
Jerry , dans le message (digitalmars.D.learn:29830), a écrit :
trav...@phare.normalesup.org (Christophe) writes:
Jerry Quinn , dans le message (digitalmars.D.learn:29763), a écrit :
What I really want is a shared fifo where the input is lines from a
file, and many workers grab something
trav...@phare.normalesup.org (Christophe) writes:
Jerry Quinn , dans le message (digitalmars.D.learn:29763), a écrit :
What I really want is a shared fifo where the input is lines from a
file, and many workers grab something from the fifo. They then push
their results into a shared
Jonathan M Davis Wrote:
On Saturday, September 24, 2011 01:05:52 Jerry Quinn wrote:
Jonathan M Davis Wrote:
On Friday, September 23, 2011 23:01:17 Jerry Quinn wrote:
A direct rewrite would involve using shared and synchronized (either on
the class or a synchronized block around
Lutger Blijdestijn Wrote:
If you didn't know, the concurrency chapter of tdpl is a free chapter:
http://www.informit.com/articles/article.aspx?p=1609144
It has an example of file copying with message passing:
http://www.informit.com/articles/article.aspx?p=1609144seqNum=7
What I really
On Sunday, September 25, 2011 02:26:18 Jerry Quinn wrote:
Jonathan M Davis Wrote:
On Saturday, September 24, 2011 01:05:52 Jerry Quinn wrote:
Jonathan M Davis Wrote:
On Friday, September 23, 2011 23:01:17 Jerry Quinn wrote:
A direct rewrite would involve using shared and
Jerry Quinn wrote:
Jonathan M Davis Wrote:
On Saturday, September 24, 2011 01:05:52 Jerry Quinn wrote:
Jonathan M Davis Wrote:
On Friday, September 23, 2011 23:01:17 Jerry Quinn wrote:
A direct rewrite would involve using shared and synchronized (either
on the class or a
If you didn't know, the concurrency chapter of tdpl is a free chapter:
http://www.informit.com/articles/article.aspx?p=1609144
It has an example of file copying with message passing:
http://www.informit.com/articles/article.aspx?p=1609144seqNum=7
Hi folks,
I wasn't sure whether this should go here or in the D devel list...
I'm trying to port a program where threads read from a file, process the data,
then write the output data. The program is cpu-bound. In C++ I can do
something like this:
class QueueIn {
ifstream in;
mutex m;
On Friday, September 23, 2011 23:01:17 Jerry Quinn wrote:
Hi folks,
I wasn't sure whether this should go here or in the D devel list...
I'm trying to port a program where threads read from a file, process the
data, then write the output data. The program is cpu-bound. In C++ I can
do
Jonathan M Davis Wrote:
On Friday, September 23, 2011 23:01:17 Jerry Quinn wrote:
A direct rewrite would involve using shared and synchronized (either on the
class or a synchronized block around the code that you want to lock).
However,
the more idiomatic way to do it would be to use
Zane schrieb:
Doh! I still need help with number 2, but for number 1, all I needed
was to use 'writeString' instead of 'write'. Like I said, still
getting used to Phobos. Like I said, I still need help on the
destructor question (#2).
Thanks, Zane
desctructors are called in not defined
20 matches
Mail list logo