Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Check If File Exists
- int i = 1;
- string fileName = myPath + "batch" + i + ".txt";
- string deletedFileName = myPath + "batch" + i + ".del";
- while (File.Exists(fileName) || File.Exists(deleteFileName))
- {
- i++;
- fileName = myPath + "batch" + i + ".txt";
- }
Add Comment
Please, Sign In to add comment