Thanks everyone I could not see the wood for the trees. Just spotted the : missing. Thanks again
S
solent
@solent
Posts
-
Passing A String -
Passing A StringHi, Thanks for the responses. However, c:\projects does exist on my PC and I have also tried @c:\\projects but am still getting the same problem. However if I hard code as in the following it works fine. XMLDoc.Save(@"c:\projects\text.xml")
-
Passing A StringHi, I am setting a Property in a class using the following: xmloutput.FileName = @"c\projects\text.xml"; Then I use the following to open a new XMLTextWriter; XmlTextWriter xmlWriter = new XmlTextWriter(_FileName, System.Text.Encoding.UTF8); However the Filename gets changed to : D:\\My Documents\\Visual Studio 2005\\Projects\\Scanner\\Scanner\\bin\\Debug\\c\\projects\\text.xml I cannot understand why the D:\\ etc gets put onto the front of the string. Any help would be appreciated