categoryRuby覚書

open,close

trackback0  comment0
プログラミング覚書 Ruby-007

open,close
----------------------------------------------------------------------

outfile = File.open("test.dat","w")
for i in 1..10
outfile.printf("%5d %5d\n", i, i * i)
end
outfile.close

----------------------------------------------------------------------
関連記事
 









        
 
http://greenwind888.blog.fc2.com/tb.php/121-3e2d913b