View Problem

Process each file in a directory

ExpandDiskEdit
java
for (File file : (new File("c:\\")).listFiles()) process(file);
DiskEdit
csharp
foreach (string filename in System.IO.Directory.GetFiles(directory)) ProcessFile(filename);
ExpandDiskEdit
erlang
% File basenames only - many tasks require absolute paths to work
lists:foreach(fun (FileOrDirPath) -> Worker(FileOrDirPath) end, file:list_dir(Directory)).
ExpandDiskEdit
erlang
% Absolute paths provided - will accomodate most tasks
lists:foreach(fun (FileOrDirPath) -> Worker(FileOrDirPath) end, list_dir_path(Directory)).

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