Module for Go language wich provides methods to work with text files
Documentation:
install:
go get github.com/BobbyKitten/TFileGo
Import:
import "github.com/BobbyKitten/TFileGo"
Example:
Read all lines from file:
package main
import (
"TFileGo"
"fmt"
)
func main() {
file, err := TFileGo.OpenFile("text.txt", TFileGo.F_READ)
if err != nil {
panic(err)
}
lines := file.ReadLines()
for _, line := range lines {
fmt.Print(line)
}
}