Created
November 14, 2023 15:30
-
-
Save felipeabajo/ffe1b690c19fa716279fa50d05c82963 to your computer and use it in GitHub Desktop.
Snippets for working with files in C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*OPERATIONS WITH FILES*/ | |
/*Check if file exists*/ | |
private Boolean ExistsFile(string filePath) | |
{ | |
if (File.Exists(filePath)) return true; | |
else return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment