I am using Directory::GetFiles Method (Path, SeachPattern) to find .txt files in folders. The code that I am using look like this (I will put the selected folders *.txt files in the textBox1):
The compiler says that "Directory" is a undeclard identifier and left of .GetFiles must have class/struct/union.Code:folderBrowserDialog1->ShowDialog(); System::String ^ files3 = folderBrowserDialog1->SelectedPath; this->textBox1->Text = Directory::GetFiles(files3,"*.txt");
I am not sure if I can figure out what is missing, I have a feeling that I need a string array in any way ?



LinkBack URL
About LinkBacks



