Sum informations in file....

Rene Zwanenburg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 24 12:31:39 PST 2014


On Monday, 24 November 2014 at 20:23:57 UTC, Suliman wrote:
> thanks! But how I can skip first line?
>
> My varian:
> auto lines = "foo.txt".File
> 		.byLine
> 		.filter!(f=>f[0] != f[0]);

With 'drop' from std.range:

auto lines = "foo.txt".File
  		.byLine
  		.drop(1)
  		.filter!(f=>f[0] != f[0]);


More information about the Digitalmars-d-learn mailing list