new scasnner does readfrom a file go code example
Example 1: golang read line
package main
import "fmt"
func main(){
x := string
fmt.Scanln(&x)
}
Example 2: golang read rune from file
func (b *Reader) ReadRune() (r rune, size int, err error)