mirror of
https://github.com/LucasVbr/LucasVbr.git
synced 2026-05-14 01:21:52 +00:00
New Version of README Profile
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
04/06/2022
|
||||
"""
|
||||
|
||||
import json
|
||||
|
||||
__file__ = 'FileUtils.py'
|
||||
__author__ = 'Lucas Vbr'
|
||||
__version__ = '0.1'
|
||||
|
||||
|
||||
def getJsonData(fileName: str) -> str:
|
||||
with open(fileName) as file:
|
||||
data = json.load(file)
|
||||
return data
|
||||
|
||||
|
||||
def setFileData(fileName: str, content: str):
|
||||
with open(fileName, "w", encoding="utf8") as file:
|
||||
file.write(content)
|
||||
Reference in New Issue
Block a user