diff options
Diffstat (limited to 'data_writer.py')
| -rw-r--r-- | data_writer.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/data_writer.py b/data_writer.py new file mode 100644 index 0000000..e74cb89 --- /dev/null +++ b/data_writer.py @@ -0,0 +1,10 @@ +import os +class DataWriter: + def __init__(self, filepath: str): + self.filepath = filepath + with open(self.filepath, "w") as f: + f.write("") + + def write(self, data: str): + with open(self.filepath, "a") as f: + f.write(data)
\ No newline at end of file |
