Method to check whether the file is exist or not,
C#
if(System.IO.File.Exists(@”d:\mytest.xml”))
{
//True statements comes here
}
This code check whether a file named “mytest.xml” exist in the D:\ drive or not.
Cheers,
Venkatesan Prabu .J
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · C#Modern CSharp Mastery - Advanced Guide for Experienced DevelopersDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Former memberPosted May 3, 2012, 11:19 PM EDT
<p>If you like <strong><a title="juicy couture jewellery" href="http://www.juicyjewelrys.com">juicy couture jewellery</a></strong>,you can consider the <a title="juicy couture earrings" href="http://www.juicyjewelrys.com/juicy-couture-earrings-c-4.html">juicy couture earrings</a><a title="vivienne westwood earrings" href="http://www.viviennewestwoodjewel.com/vivienne-westwood-earrings-c-9.html"></a>, <a title="juicy couture necklaces" href="http://www.juicyjewelrys.com/juicy-couture-necklaces-c-2.html">juicy couture necklaces</a> and <a title="juicy couture bracelets" href="http://www.juicyjewelrys.com/juicy-couture-bracelets-c-3.html">juicy couture bracelets</a>. Juicy couture accessories also includes <a title="juicy couture handbags" href="http://www.juicyjewelrys.com/juicy-couture-handbags-c-5.html">juicy couture handbags</a>, wallets, belts, sunglasses and so on <a title="Juicy Couture charms" href="http://www.juicyjewelrys.com/juicy-couture-charms-c-1.html" target="_blank">Juicy Couture charms</a> products.</p>