View Problem

Process each file in a directory

ExpandDiskEdit
java
for (File file : (new File("c:\\")).listFiles()) process(file);
ExpandDiskEdit
cpp C++/CLI .NET 2.0
for each(String^ filename in IO::Directory::GetFiles(dirname)) process(filename);
DiskEdit
csharp
foreach (string filename in System.IO.Directory.GetFiles(directory)) ProcessFile(filename);
ExpandDiskEdit
groovy
dir.eachFile{ f -> process(f) }

Submit a new solution for java, cpp, csharp, or groovy
There are 13 other solutions in additional languages (clojure, erlang, fantom, fsharp ...)