Read File content

PHOTO EMBED

Wed Jul 21 2021 22:01:57 GMT+0000 (Coordinated Universal Time)

Saved by @nhatphan108

func readFileContent(fileName string) string {
	file, err := os.Open(filename)
	if err != nil {
		return ""
	}
	content, err := ioutil.ReadAll(file)
	if err != nil {
		return ""
	}
	file.Close()
	return content
}
content_copyCOPY