On Thursday, 17 December 2015 at 14:09:57 UTC, Suliman wrote:
Next code produce error:foreach(i, line;fileContent.byLine) Error: cannot infer argument types, expected 1 argument, not 2 Why it's do not work?
Because byLine doesn't return an array, use std.range.enumerate : http://dlang.org/phobos/std_range#.enumerate