View Problem

Process each file in a directory

ExpandDiskEdit
scala
for (file <- new File("c:\\").listFiles) { processFile(file) }
DiskEdit
csharp
foreach (string filename in System.IO.Directory.GetFiles(directory)) ProcessFile(filename);

Submit a new solution for scala or csharp
There are 15 other solutions in additional languages (clojure, cpp, erlang, fantom ...)