# Ruby File class

**URL:** <https://www.ruby-forum.com/t/ruby-file-class/189496>\
**Category:** Ruby\
**Created:** [June 1, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/ruby-file-class/189496 "2010-06-01T20:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kevid](https://www.ruby-forum.com/u/kevid)\
**Post date:** [June 1, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/ruby-file-class/189496/1 "2010-06-01T20:35:22Z")

</div>

Hi all,

am working on a platform that uses ruby but has not all the File class  
of ruby implemented. For instance,

File.read is not implemented.

Can anyone help me with the link or how to get the ruby file class (i  
mean the file that contains ruby file class). so i can add it to my  
application or the framework i use.

---

<div class="post-metadata">

**Author:** ![kevid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kevid](https://www.ruby-forum.com/u/kevid)\
**Post date:** [June 1, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/ruby-file-class/189496/2 "2010-06-01T23:26:54Z")

</div>

On Tue, Jun 1, 2010 at 8:35 PM, kevid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all,
> 
> am working on a platform that uses ruby but has not all the File class  
> of ruby implemented. For instance,
> 
> File.read is not implemented.

What platform is that?

> Can anyone help me with the link or how to get the ruby file class (i  
> mean the file that contains ruby file class). so i can add it to my  
> application or the framework i use.

In MRI, the File class is implemented in C. This is the .c file for ruby  
1.8.7:

[http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby\_1\_8\_7/file.c?revision=24114&view=markup](http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_7/file.c?revision=24114&view=markup)

I don’t know if this is useful for you or not.

Jesus.
