Reading

The ioutil.ReadFile() method takes the path to the file to be read, as it is the only parameter. This method returns file data or an error.


ioutil.ReadFile("test.txt")
                        
reading.go