# Using IO objects?

**URL:** <https://www.ruby-forum.com/t/using-io-objects/110046>\
**Category:** Ruby\
**Created:** [July 22, 2007, 2:07am UTC](https://www.ruby-forum.com/t/using-io-objects/110046 "2007-07-22T02:07:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [July 22, 2007, 2:07am UTC](https://www.ruby-forum.com/t/using-io-objects/110046/1 "2007-07-22T02:07:11Z")

</div>

hey… uh… slightly sumped with this. I’m using RSCM for some SVN stuff,  
and when I do a diff i get a IO object back… Not sure exactly how to  
get what’s in it… any ideas? thanks all

---

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [July 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/using-io-objects/110046/2 "2007-07-26T00:45:52Z")

</div>

Aaron S. wrote:

> hey… uh… slightly sumped with this. I’m using RSCM for some SVN stuff,  
> and when I do a diff i get a IO object back… Not sure exactly how to  
> get what’s in it… any ideas? thanks all

Could you post some code and/or output? Your jargon is impenetrable.

---

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [July 26, 2007, 12:46am UTC](https://www.ruby-forum.com/t/using-io-objects/110046/3 "2007-07-26T00:46:20Z")

</div>

On Sun, Jul 22, 2007, Aaron S. wrote:

> hey… uh… slightly sumped with this. I’m using RSCM for some SVN stuff,  
> and when I do a diff i get a IO object back… Not sure exactly how to  
> get what’s in it… any ideas? thanks all

You should be able to call #read on your IO object to slurp the entire  
contents. IO is standard library, so you can find docs in all the usual  
places. I’d start here:

[http://ruby-doc.org/core/classes/IO.html](http://ruby-doc.org/core/classes/IO.html)

Good luck!  
Ben
