package main

import (
	"fmt"
	_ "io/ioutil"
	"os"
)

func main() {
	//f, err := ioutil.ReadFile("README.md")
	f, err := os.Open("README.md")
	if err != nil {
		return
	}
	fmt.Println(f.Name())
}

package main

import (
	"fmt"
	"io/ioutil"
	"os"
)

func main() {
	file, err := ioutil.ReadFile("README.md")
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
	text := string(file)
	fmt.Println(text)
}

Update read file example to actually work
Update read file example to actually work
