On Sunday, 16 March 2014 at 17:58:45 UTC, bearophile wrote:
In Python you write:for line in file("text.txt"): ... So can't you make File iterable? foreach (line; "text.txt".File) {} Bye, bearophile
Is `line` a byte, a character, or a line?
On Sunday, 16 March 2014 at 17:58:45 UTC, bearophile wrote:
In Python you write:for line in file("text.txt"): ... So can't you make File iterable? foreach (line; "text.txt".File) {} Bye, bearophile
Is `line` a byte, a character, or a line?