As title says I don't know what's wrong with my code but if (File.Exists)
give negative result even if the file is there.
Below is my code
if (File.Exists(ZFileConfig.FileName.Replace(".xml", "_abc.xml")))
Here, ZFileConfig.FileName
is E:\\Application\\Application\\bin\\Debug\\resources\\FirstFile.xml
And amazingly ZFileConfig.FileName.Replace(".xml", "_abc.xml")
gives me E:\\Application\\Application\\bin\\Debug\\resources\\FirstFile_abc.xml
that is what is needed. EVENTHOUGH IF
falied to return TRUE.