# Creating a file with $SIZE

**URL:** <https://www.ruby-forum.com/t/creating-a-file-with-size/131671>\
**Category:** Ruby\
**Created:** [March 12, 2008, 11:37am UTC](https://www.ruby-forum.com/t/creating-a-file-with-size/131671 "2008-03-12T11:37:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iPerfect](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ad7895/32.png) [@iPerfect](https://www.ruby-forum.com/u/iPerfect)\
**Post date:** [March 12, 2008, 11:37am UTC](https://www.ruby-forum.com/t/creating-a-file-with-size/131671/1 "2008-03-12T11:37:04Z")

</div>

Hi All,

I would like create files of different size, taking size as user  
input. I need to check the data transfer rates from one network to  
another . In order to do this I will have to create files of diff size  
and work out. I am new to ruby

Thanks,  
KK

---

<div class="post-metadata">

**Author:** ![iPerfect](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ad7895/32.png) [@iPerfect](https://www.ruby-forum.com/u/iPerfect)\
**Post date:** [March 12, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/creating-a-file-with-size/131671/2 "2008-03-12T13:37:50Z")

</div>

2008/3/12, iPerfect [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I would like create files of different size, taking size as user  
> input. I need to check the data transfer rates from one network to  
> another . In order to do this I will have to create files of diff size  
> and work out. I am new to ruby

[http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut\_io.html](http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_io.html)  
[http://www.ruby-doc.org/core/classes/IO.html](http://www.ruby-doc.org/core/classes/IO.html)

Kind regards

robert
