Ruby File I/O

Reading and writing files using File class.