code: @PublicEvolving
  	public DataStreamSink<T> writeAsText(String path, WriteMode writeMode) {
  		TextOutputFormat<T> tof = new TextOutputFormat<>(new Path(path));
  		tof.setWriteMode(writeMode);
  		return writeUsingOutputFormat(tof);
  	}
docs: Writes a DataStream to the file specified by path in text format.
  
  <p>For every element of the DataStream the result of {@link Object#toString()} is written.
  
  @param path
  The path pointing to the location the text file is written to
  @param writeMode
  Controls the behavior for existing files. Options are
  NO_OVERWRITE and OVERWRITE.
  
  @return The closed DataStream.