listdir
hadas via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Mar 14 08:04:53 PDT 2017
Hi,
I'm trying to read all the txt files in specific path.
I tried to use listdir function, but I get this error:
Error: undefined identifier 'listdir' in module 'std.file'
import std.stdio;
import std.file;
void main(string[] args)
{
auto vm_files = std.file.listdir("C:/Users/hadas/Documents/d",
"*.txt");
foreach(d;vm_files)
writeln(d);
}
More information about the Digitalmars-d-learn
mailing list