Initializes and returns an NSInput
object that reads data from the file at a given URL.
SDKs
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
init?(url: URL)
Parameters
url
The URL to the file.
Return Value
An initialized NSInput
object that reads data from the file at url
.
Discussion
The stream must be opened before it can be used.