Mega Code Archive
Categories
/
Ruby
/
File Directory
File open
file2 = File.open("C:\\Ruby\\Sample"){|f| puts "The file object is #{f}"} puts file2