Capture error in Set() and Clear()

Any error state from the `File.Write()` method was being ignored instead of being stored so that it could be queried by `Err()`.