Skip to content

Instantly share code, notes, and snippets.

@felipeabajo
Created November 14, 2023 15:30
Show Gist options
  • Save felipeabajo/ffe1b690c19fa716279fa50d05c82963 to your computer and use it in GitHub Desktop.
Save felipeabajo/ffe1b690c19fa716279fa50d05c82963 to your computer and use it in GitHub Desktop.
Snippets for working with files in C#
/*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