Hi Guys i am getting error directory name is invalid.My codeis as follows :
private void toolStripButton1_Click(object sender, EventArgs e)
{
OpenFileDialog dialog = new OpenFileDialog();
parser = new GrammarParser();
parser.showStep += new GrammarParser.ShowStep(parser_showStep);
if (dialog.ShowDialog() == DialogResult.OK)
{
string[] names = Directory.GetFiles(dialog.FileName);
for (int i = 0; i < names.Length; i++)
{
// read file to the string
string text = "";
parser.Text = text;
resultString = parser.SerParserString;
// go to to database
}
}
}
Thanks for any help