mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Wrote script to fix checksums
This commit is contained in:
@@ -49,11 +49,21 @@ class FileUtil:
|
||||
with open(filename, 'r') as inFile:
|
||||
return inFile.read()
|
||||
|
||||
@staticmethod
|
||||
def get_bytes_from_file(filename):
|
||||
with open(filename, 'rb') as inFile:
|
||||
return list(inFile.read())
|
||||
|
||||
@staticmethod
|
||||
def write_text_to_file(filename, text):
|
||||
with open(filename, 'w') as outFile:
|
||||
outFile.write(text)
|
||||
|
||||
@staticmethod
|
||||
def write_bytes_to_file(filename, binary):
|
||||
with open(filename, 'wb') as outFile:
|
||||
outFile.write(bytearray(binary))
|
||||
|
||||
@staticmethod
|
||||
def delete_file(filename):
|
||||
remove(filename)
|
||||
|
||||
Reference in New Issue
Block a user