macOS, iOS

swift EOF까지 input 받아오기!

SweetDev 2019. 12. 6. 11:46

while let line = readLine() { print(line) }

 

control + D하면 EOF가 send 된다.