init(string:)
Creates a filename by copying a character sequence from a string instance.
Declaration
convenience init(string name: String)Parameters
- name:
The string containing the character sequence to use for the filename.
Discussion
This initializer copies the UTF-8 representation of the characters in string. If string contains a NUL character, the sequence terminates.