ask for advice:
there is a file test.in
that contains
6 5
3 4
to read, but after reading 65, it will read a 0 and then read 3
code as follows
file, err := os.Open("test.in")
if err != nil {
panic(err)
}
var one, two,third,four int
fmt.Fscanf(file, "%d", &one) //one 6
fmt.Fscanf(file, "%d", &two) //two 5
fmt.Fscanf(file, "%d", &third) // third 0
fmt.Fscanf(file, "%d", &four ) //four 3
how to avoid reading 0
Thank you