file_read_write.rb: added more file i/o scenarios