In the previous lesson, we learned how to read files using os.ReadFile. Now it's time to put that knowledge into practice.
Your task is to create a function called readFile that reads a file called training.txt and returns the contents as a string.
Remember what we covered in the previous lesson:
This is exactly what we saw in the last lesson, but now you'll implement it yourself. Complete the coding challenge below to practice this skill.
os.ReadFile reads an entire file into memory[]byte and string is done with string(data)_