Create handleFile.java

class handleFile
function ReadFile:
Reads the input file and returns ArrayList.




function writeOutFile:
Recieves the List from the program and writes it onto an output file("output.txt")