summaryrefslogtreecommitdiffstats
path: root/IO/FileWriter.cs
blob: b3a574d5078be2bb18bda26790a022df730414e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.IO;
using Graph.Interfaces;

namespace Graph.IO
{
    public class FileWriter : IFileWriter
    {
        string FilePath { get; }

        public FileWriter(string filePath)
        {
            FilePath = filePath;
        }

        public void WriteAllText(string content)
        {
            File.WriteAllText(FilePath, content);
        }
    }
}