UnisKB/apps/common/util/file_util.py

15 lines
257 B
Python
Raw Normal View History

# coding=utf-8
"""
@project: maxkb
@Author:虎
@file: file_util.py
@date:2023/9/25 21:06
@desc:
"""
def get_file_content(path):
with open(path, "r", encoding='utf-8') as file:
content = file.read()
return content