Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FileTag tagFile
FileTag is the Tag for File objects. Activate returns self. CloneValue returns a new, unopened file with an empty path and mode set to "update".
Functions ¶
Types ¶
type File ¶
type File struct { File *os.File // Path is in the OS's convention internally, but Io-facing methods convert // it to slash-separated. Path string Mode string EOF bool // no equivalent to feof() in Go }
A File is an object allowing interfacing with the operating system's files.
func (File) ReadLine ¶
ReadLine reads one line from the file such that the file cursor will be positioned after the first encountered newline. The line without the newline is returned, along with any error, which may include io.EOF. If the file reaches EOF while reading, then the returned eof value will be true.
Click to show internal directories.
Click to hide internal directories.