1 // Written by bearophile <bearophileHUGS@lycos.com>
2 // Fount at http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=67673
3 // Sightly modified by Leandro Lucarella <llucax@gmail.com>
6 import tango.io.device.File: File;
7 import tango.text.Util: delimit;
8 import tango.util.Convert: to;
10 int main(char[][] args) {
11 auto txt = cast(byte[]) File.get("bible.txt");
12 auto n = (args.length > 1) ? to!(uint)(args[1]) : 1;
16 auto words = delimit!(byte)(txt, cast(byte[]) " \t\n\r");