var info = new DirectoryInfo(path); var fileInfo = info.GetFiles(); for (file in fileInfo) print (file);