code: protected void cleanFile(String path) {
  		try {
  			PrintWriter writer;
  			writer = new PrintWriter(path);
  			writer.print("");
  			writer.close();
  		} catch (FileNotFoundException e) {
  			throw new RuntimeException("An error occurred while cleaning the file: " + e.getMessage(), e);
  		}
  	}
docs: Creates target file if it does not exist, cleans it if it exists.
  
  @param path
  is the path to the location where the tuples are written