diff --git a/README.md b/README.md index 90586c7..34bee3d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ We encourage contributions to the project. To contribute: ## Changelog -See [changelog](https://github.com/Pardus-Kurumsal/lider/wiki/Changelog) to learn what we have been up to. +See [changelog](https://github.com/Pardus-Kurumsal/ahenk/wiki/Changelog) to learn what we have been up to. ## Roadmap diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index 432346d..7e9b0c3 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -96,6 +96,15 @@ class Util: finally: return content + @staticmethod + def read_file_by_line(full_path, mode='r'): + line_list = list() + with open(full_path, mode) as f: + lines = f.readlines() + for line in lines: + line_list.append(line) + return line_list + @staticmethod def write_file(full_path, content, mode='w+'): file = None