The shootout specs for the sum-file benchmark http://shootout.alioth.debian.org/debian/benchmark.php?test=sumcol&lang=all require the use of line-oriented I/O... Raul's solution involved reading the whole file in.
Line-oriented I/O is important - what happens when a file is larger than memory? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
