summaryrefslogtreecommitdiffstats
path: root/IO/FileWriter.cs
blob: 7e10f6270b9de9bb7870163c972a9c00dd9d0ccc (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 WriteAllLines(string[] lines)
        {
            File.WriteAllLines(FilePath, lines);
        }
    }
}