Maybe I see it all wrong. I've been trying to convert a simple #python script to #golang / #go today.

I wrote the python script a while ago, in about 10 minutes.
After 4 hours, the Go program still doesn't do what I want it to do. Biggest hurdle: writing an int to a file.

Why on earth would you need to import ioutil AND os to get something simple done as write an integer to a file, and jump through hoops to get it almost done?

All I need is to read the int, increment it, check it against a value and write the incremented value back. Does someone here have some insight on how to do that the right way?

There are no comments yet.