Remove unnecessary call to `File.open`.
No need to delete ':'.