Tests for _update_file().
Removed _update_file().
Most of the functionality belonged in _open_file(), and all that was left were calls to _close_file() and _open_file().