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);

}

  • listdir hadas via Digitalmars-d-learn

Reply via email to