FileProcess.cs 347 B

1234567891011121314151617
  1. using System;
  2. using System.IO;
  3. namespace MyClasses
  4. {
  5. public class FileProcess
  6. {
  7. public bool FileExists(string fileName)
  8. {
  9. if (string.IsNullOrEmpty(fileName))
  10. {
  11. throw new ArgumentNullException("filename");
  12. }
  13. return File.Exists(fileName);
  14. }
  15. }
  16. }