2022-01-12 10:06:03 +03:00
|
|
|
using System.IO;
|
|
|
|
using System.Text;
|
|
|
|
|
2022-01-12 10:39:15 +03:00
|
|
|
namespace Packages.Rider.Editor.ProjectGeneration {
|
2022-01-12 10:06:03 +03:00
|
|
|
class FileIOProvider : IFileIO
|
|
|
|
{
|
|
|
|
public bool Exists(string fileName)
|
|
|
|
{
|
|
|
|
return File.Exists(fileName);
|
|
|
|
}
|
|
|
|
|
|
|
|
public string ReadAllText(string fileName)
|
|
|
|
{
|
|
|
|
return File.ReadAllText(fileName);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void WriteAllText(string fileName, string content)
|
|
|
|
{
|
|
|
|
File.WriteAllText(fileName, content, Encoding.UTF8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|