Hi,
I'm using .NET 2.0 for this application.
Before loading an xml file, i would like to be sure that the file exists.
So I've that :
where CoreApplication.ApplicationPath contains that : System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
and _xml_file contains (for instance) : xml/toto.xml
When I go through the directory returned by CoreApplication.ApplicationPath, indeed, there is no folder "xml" but in my architecture, there is one !
I don't understand, need some help
Thanks
I'm using .NET 2.0 for this application.
Before loading an xml file, i would like to be sure that the file exists.
So I've that :
VB.NET:
if File.Exists(CoreApplication.ApplicationPath & _xml_file)
where CoreApplication.ApplicationPath contains that : System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
and _xml_file contains (for instance) : xml/toto.xml
When I go through the directory returned by CoreApplication.ApplicationPath, indeed, there is no folder "xml" but in my architecture, there is one !
I don't understand, need some help
Thanks