readf

bearophile bearophileHUGS at lycos.com
Tue Nov 2 04:31:38 PDT 2010


Nick Voronin:

> On yet another topic :) Is there alternative to stream.readf? Somehow while searching for explanation of unexpected behavior I got the idea that readf and streams considered to be second-class citizens in world of D and they are not a proper way to do things, so no one really cares about them... Therefore the question. What do I use to read numbers from file?

In std.stdio there is a function to read a line, and then you may use std.conv.parse or std.conv.to.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list