readObject
static func readObject(fileName: String) throws -> T
The class also has its own errors:
enum SaveSystemError: Error {
case invalidDirPath
case fileDoesNotExist
case failedWriting
case failedReading
case invalidStringEncoding
case invalidObject
}
Implemented the SaveSystem static Class inside the Manager namespace.
Class has 7 static methods:
The class also has its own errors:
enum SaveSystemError: Error { case invalidDirPath case fileDoesNotExist case failedWriting case failedReading case invalidStringEncoding case invalidObject }
Class was tested in a Playground.