Advertisement
Gov_777

Проверяет, существует ли файл

Jun 4th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.12 KB | None | 0 0
  1. string curFile = @"c:\temp\test.txt";
  2. Console.WriteLine(File.Exists(curFile) ? "File exists." :
  3. "File does not exist.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement