Initializerswift 6.0.3Foundation
init(forWritingAtPath:)
convenience init?(forWritingAtPath path: String)
convenience init?(forWritingAtPath path: String)
s10Foundation10FileHandleC16forWritingAtPathACSgSS_tcfc
What are these?73PQ6
import Foundation
class FileHandle
@frozen struct String
A Unicode string value that is a collection of characters.
convenience init(fileDescriptor fd: Int32)
init(fileDescriptor fd: Int32, closeOnDealloc closeopt: Bool)
convenience init?(forReadingAtPath path: String)
convenience init(forReadingFrom url: URL) throws
convenience init(forUpdating url: URL) throws
convenience init?(forUpdatingAtPath path: String)
convenience init(forWritingTo url: URL) throws
static let readCompletionNotification: Notification.Name
class var nullDevice: FileHandle { get }
class var standardError: FileHandle { get }
class var standardInput: FileHandle { get }
class var standardOutput: FileHandle { get }
var availableData: Data { get }
var fileDescriptor: Int32 { get }
var readabilityHandler: ((FileHandle) -> Void)? { get set }
var writeabilityHandler: ((FileHandle) -> Void)? { get set }
func acceptConnectionInBackgroundAndNotify()
func acceptConnectionInBackgroundAndNotify(forModes modes: [RunLoop.Mode]?)
func close() throws
func offset() throws -> UInt64
func read(upToCount count: Int) throws -> Data?
func readInBackgroundAndNotify()
func readInBackgroundAndNotify(forModes modes: [RunLoop.Mode]?)
func readToEnd() throws -> Data?
func readToEndOfFileInBackgroundAndNotify()
func readToEndOfFileInBackgroundAndNotify(forModes modes: [RunLoop.Mode]?)
func seek(toOffset offset: UInt64) throws
@discardableResult func seekToEnd() throws -> UInt64
func synchronize() throws
func truncate(atOffset offset: UInt64) throws
func waitForDataInBackgroundAndNotify()
func waitForDataInBackgroundAndNotify(forModes modes: [RunLoop.Mode]?)
func write<T>(contentsOf data: T) throws where T : DataProtocol
var offsetInFile: UInt64 { get }
func closeFile()
func readData(ofLength length: Int) -> Data
func readDataToEndOfFile() -> Data
func seek(toFileOffset offset: UInt64)
@discardableResult func seekToEndOfFile() -> UInt64
func synchronizeFile()
func truncateFile(atOffset offset: UInt64)
func write(_ data: Data)