Creates/ returns a file object
Parameters: rootLocation - - Location to be written Parameters: packageName - - package, can be '.' separated Parameters: fileName - name of the file Parameters: extension - type of the file, java, cpp etc the File that was created throws: IOException - throws: Exception -