> auto arr = slurp!(string, int)("data.txt", "%s, %s "); Sorry, ignore this because it's essentially the same code as yours. What's the error you are receiving? (And better to ask such questions in D.learn). Bye, bearophile