Skip to content

Instance Method

input(isSecure:)

Returns a String of input read from the Console until a line feed character was found.
func input(isSecure: Bool) -> String

Return Value

The string that was read, or an empty string if EOF was encountered

Discussion

let input = console.input(isSecure: false)
print(input) // String

Note

The line feed character should not be included.