mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
24 lines
470 B
C#
24 lines
470 B
C#
using System.IO;
|
|
|
|
namespace mRemoteNG.Config
|
|
{
|
|
public class FileDataProvider : IDataProvider
|
|
{
|
|
public string FilePath { get; set; }
|
|
|
|
public FileDataProvider(string filePath)
|
|
{
|
|
FilePath = filePath;
|
|
}
|
|
|
|
public string Load()
|
|
{
|
|
return File.ReadAllText(FilePath);
|
|
}
|
|
|
|
public void Save(string content)
|
|
{
|
|
File.WriteAllText(FilePath, content);
|
|
}
|
|
}
|
|
} |