File Exists
In this chapter you will learn:
File existance check
using System;/*from j a v a2s . c o m*/
using System.IO;
static class MainClass
{
static void Main(string[] args)
{
Console.WriteLine(File.Exists("c:\\test.txt"));
}
}
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » File, Path