summaryrefslogtreecommitdiffstats
path: root/IO/FileWriter.cs
blob: c423f52a870debe8c0930fd7c8a84bc25f695480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
        {
            Console.WriteLine(content);
            File.WriteAllText(FilePath, content);
        }
    }
}