Input loop: Difference between revisions
Go solution
m (→{{header|Icon}} and {{header|Unicon}}: -workswith) |
(Go solution) |
||
Line 557:
It seems impossible to complete this task with just standard gnuplot commands.
=={{header|Go}}==
The following reads a line at a time from stdin. The variable s is the line returned from stdin.
<lang go>package main
import (
"bufio"
"os"
)
func main() {
in := bufio.NewReader(os.Stdin)
for {
s, err := in.ReadString('\n')
if err != nil {
break
}
_ = s
}
}</lang>
=={{header|Haskell}}==
|