how to read filename?
-
hi, if i am using folloing code to open a perticular xml file, OpenFileDialog dlg = new OpenFileDialog(); dlg.Title = "Open XML File"; dlg.Filter = "xml files (*.xml)|*.xml|All files (*.*)|*.*" ; if (dlg.ShowDialog() == DialogResult.OK) { doc.Load(dlg.OpenFile()); } and now if i want to read a file name in the xmltextreader , how can i read it?
-
hi, if i am using folloing code to open a perticular xml file, OpenFileDialog dlg = new OpenFileDialog(); dlg.Title = "Open XML File"; dlg.Filter = "xml files (*.xml)|*.xml|All files (*.*)|*.*" ; if (dlg.ShowDialog() == DialogResult.OK) { doc.Load(dlg.OpenFile()); } and now if i want to read a file name in the xmltextreader , how can i read it?
Try
dlg.FileName
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Try
dlg.FileName
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions