{"comment":{"url":"https://api.github.com/repos/pchi17/photo-gallery-cli/comments/9688922","html_url":"https://github.com/pchi17/photo-gallery-cli/commit/833ccb5de66a80d0fad297956aca8c187fccf25e#commitcomment-9688922","id":9688922,"user":{"login":"openspectrum","id":709100,"avatar_url":"https://avatars.githubusercontent.com/u/709100?v=3","gravatar_id":"","url":"https://api.github.com/users/openspectrum","html_url":"https://github.com/openspectrum","followers_url":"https://api.github.com/users/openspectrum/followers","following_url":"https://api.github.com/users/openspectrum/following{/other_user}","gists_url":"https://api.github.com/users/openspectrum/gists{/gist_id}","starred_url":"https://api.github.com/users/openspectrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openspectrum/subscriptions","organizations_url":"https://api.github.com/users/openspectrum/orgs","repos_url":"https://api.github.com/users/openspectrum/repos","events_url":"https://api.github.com/users/openspectrum/events{/privacy}","received_events_url":"https://api.github.com/users/openspectrum/received_events","type":"User","site_admin":false},"position":45,"line":44,"path":"gallery.rb","commit_id":"833ccb5de66a80d0fad297956aca8c187fccf25e","created_at":"2015-02-11T04:43:06Z","updated_at":"2015-02-11T04:43:06Z","body":"Or you could use the `w+` mode:\r\n\r\n```ruby\r\nfile = File.open(\"public/gallery.html\", \"w+\")\r\n```"}}