Changes

Working with Files in Ruby

19 bytes added, 15:12, 19 March 2009
Creating a New File with Ruby
New files are created in Ruby using the ''new'' method of the ''File'' class. The ''new'' method accepts two arguments, the first being the name of the file to be created and the second being the mode in which the file is to opened. Supported file modes are shown the following table:
<google>ADSDAQBOX_FLOW</google>
<table border="1" cellspacing="0" width="100%">
<tr style="background:#efefef;">
<th>Mode<th>Description</th>