fileio

package
v0.0.0-...-3bda7ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendContent

func AppendContent(content string, fileName string)

Creates a file and appends the content to the file (ending newline must be supplied with content string)

func FileCopy

func FileCopy(sourceFile, destFile string)

Copies a FILE from source to dest

func FileExist

func FileExist(fileName string) bool

Checks if a file exists and returns a bool

func ReadFile

func ReadFile(fileName string) string

Reads a file and returns all the content as a string

func ReadLines

func ReadLines(fileName string) []string

Reads the file and returns a stringlist with each line

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL