Skip to content
Coder Cream
View website Menu
  • Home
  • Lifestyle
  • Fashion
  • Travel
  • Contact
  • Your cart
  • Type your search
0 Menu Close
  • Home
  • Lifestyle
  • Fashion
  • Travel
  • Contact
  • Your cart
  • Type your search
  • Browse Blog
  • Contact Us
  • About Us

Blog

How To Determine If A File Exists C#

string curFile = @”c:\temp\test.txt”;
Console.WriteLine(File.Exists(curFile) ? “File exists.” : “File does not exist.”);

Add more languages.

You Might Also Like

How To Serialize An Object To XML

November 18, 2016
Read more about the article Remove spaces from a string C# VB.Net

Remove spaces from a string C# VB.Net

March 9, 2018
Read more about the article Microsoft Excel file save as xls vs xlsx in C#

Microsoft Excel file save as xls vs xlsx in C#

June 14, 2017
  • About Us
  • Contact Us
  • Blog
© Copyright - OceanWP Theme by Nick
×
×

Cart