package main
import (
"bufio"
"fmt"
"os"
)
func main() {
f, _ := os.Open(
"C:\\programs\\file.txt")
scanner := bufio.NewScanner(f)
// Set the Split method to ScanWords.
scanner.Split(bufio.ScanWords)
// Scan all words from the file.
for scanner.Scan() {
line := scanner.Text()
fmt.Println(line)
}
}
a
commodius
vicus
of
recirculation
a commodius vicus of recirculation