Guest User

Untitled

a guest
Aug 14th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. // Check If File Exists
  2.         int i = 1;
  3.         string fileName = myPath + "batch" + i + ".txt";
  4.         string deletedFileName = myPath + "batch" + i + ".del";
  5.         while (File.Exists(fileName) || File.Exists(deleteFileName))
  6.         {
  7.             i++;
  8.             fileName = myPath + "batch" + i + ".txt";
  9.            
  10.         }
Add Comment
Please, Sign In to add comment