Skip to content

Commit

Permalink
try to write lines
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Oct 26, 2022
1 parent df7cdb7 commit 1ea37f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ def read_file(filename, mode="r"):
return content


def write_file(content, filename):
"""
Write a file.
"""
with open(filename, 'w') as fd:
fd.writelines(content)

def read_json(filename, mode="r"):
"""
Read a json file to a dictionary.
Expand Down

0 comments on commit 1ea37f1

Please sign in to comment.