summaryrefslogtreecommitdiff
path: root/domestic/utility/read_file.py
diff options
context:
space:
mode:
authorAL-LCL <alvin@alvinhavel.com>2023-05-19 11:01:49 +0200
committerAL-LCL <alvin@alvinhavel.com>2023-05-19 11:01:49 +0200
commit20dbeb2f38684c65ff0a4b99012c161295708e88 (patch)
treea5b8445f55da2fbbb92443b68e9d7354a290c598 /domestic/utility/read_file.py
NeoRATHEADmain
Diffstat (limited to 'domestic/utility/read_file.py')
-rw-r--r--domestic/utility/read_file.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/domestic/utility/read_file.py b/domestic/utility/read_file.py
new file mode 100644
index 0000000..7c9fcea
--- /dev/null
+++ b/domestic/utility/read_file.py
@@ -0,0 +1,3 @@
+def read_file(location):
+ with open(location, 'rb') as f:
+ return f.read() \ No newline at end of file