creating a sample text file
adding some texts to ex15_sample.txt
adding a ruby file ex15.rb to read the file ex15_sample.txt
adding code to read the file and print that file on screen
adding a new line special character
adding a ruby file ex16.rb to read and write files
adding code that reads and writes to the file
transforming PUT into lowercase puts since ruby methods are case-sensitive
adding a new file which is automatically added by the script
truncating the file newfile.txt and add some other texts
adding a single line to write all of the three lines entered by user
creating a new file newfile.txt and adding some new contents to it
removing all of the old printing statements since the file is now printed by a single target.write property