C# Loading a xml file from the current directory?
        Posted  
        
            by Jonathan Dyle
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jonathan Dyle
        
        
        
        Published on 2010-03-25T22:47:59Z
        Indexed on 
            2010/03/25
            22:53 UTC
        
        
        Read the original article
        Hit count: 472
        
Hi all,
I use the line below in my C# winform app, this works great but occasionally if the program is being run from the command line I get an error that the config.xml file cannot be found. This is because the 'working directory' is different (I think), I need to say "load config.xml from current directory", how would I do this?
docXML.Load("config.xml");
Thanks Jonathan
© Stack Overflow or respective owner