```ruby
File.open(path, 'rb') { |f| f.read } if File.exists?(path)
```
will return nil when it is the last line I believe.