FileIOProvider.cs 451 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.IO;
  3. using System.Text;
  4. namespace Packages.Rider.Editor {
  5. class FileIOProvider : IFileIO
  6. {
  7. public bool Exists(string fileName)
  8. {
  9. return File.Exists(fileName);
  10. }
  11. public string ReadAllText(string fileName)
  12. {
  13. return File.ReadAllText(fileName);
  14. }
  15. public void WriteAllText(string fileName, string content)
  16. {
  17. File.WriteAllText(fileName, content, Encoding.UTF8);
  18. }
  19. }
  20. }