FileUtility

public struct FileUtility

Undocumented

Nested Types

Init

Write

  • Undocumented

    Declaration

    Swift

    func writeValue<E>(_ value: E?, fileName: String, encoder: JSONEncoder? = nil) throws where E : Encodable

Read

  • Undocumented

    Declaration

    Swift

    func readValue<D>(atFile fileName: String, decoder: JSONDecoder? = nil) throws -> D where D : Decodable

Delete

  • Undocumented

    Declaration

    Swift

    func removeFile(named fileName: String) throws