code: public DataSink<T> writeAsText(String filePath, WriteMode writeMode) {
  		TextOutputFormat<T> tof = new TextOutputFormat<>(new Path(filePath));
  		tof.setWriteMode(writeMode);
  		return output(tof);
  	}
docs: Writes a DataSet as text file(s) to the specified location.
  
  <p>For each element of the DataSet the result of {@link Object#toString()} is written.
  
  @param filePath The path pointing to the location the text file is written to.
  @param writeMode Control the behavior for existing files. Options are NO_OVERWRITE and OVERWRITE.
  @return The DataSink that writes the DataSet.
  
  @see TextOutputFormat
  @see DataSet#writeAsText(String) Output files and directories