mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 03:52:17 +03:00
Merge branch 'master' of https://github.com/Pardus-Kurumsal/ahenk
This commit is contained in:
commit
c24fb75eee
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue