I\'ve been trying to learn Go on my own, but I\'ve been stumped on trying read from and write to ordinary files.
I can get as far as inFile, _ := os.Open(INFIL
inFile, _ := os.Open(INFIL
Try this:
package main import ( "io"; ) func main() { contents,_ := io.ReadFile("filename"); println(string(contents)); io.WriteFile("filename", contents, 0644); }