Append lines and close path.

@param filePath       the file path
@param lineCollection the line collection
@return the path
19965
public static Path appendLinesAndClose(String filePath,
            Collection<String> lineCollection) {
        return appendLinesAndClose(filePath, UTF_8, lineCollection);
    }
1326863
@Nonnull
  public CollectionReference collection(@Nonnull String collectionPath) {
    return new CollectionReference(firestore, path.append(collectionPath));
  }
1078174
@SuppressWarnings("unchecked")
    public static List<LineString> mergeLinestrings( List<LineString> multiLines ) {
        LineMerger lineMerger = new LineMerger();
        for( int i = 0; i < multiLines.size(); i++ ) {
            Geometry line = multiLines.get(i);
            lineMerger.add(line);
        }
        Collection<Geometry> merged = lineMerger.getMergedLineStrings();
        List<LineString> mergedList = new ArrayList<>();
        for( Geometry geom : merged ) {
            mergedList.add((LineString) geom);
        }
        return mergedList;
    }
496310
public static Path appendAndClose(String filePath, Charset charset,
            String writingString) {
        return new JMFileAppender(filePath, charset).append(writingString)
                .closeAndGetFilePath();
    }
653953
public static <T extends Collection<String>> T readLines(Reader reader, final T collection) throws IORuntimeException {
		readLines(reader, new LineHandler() {
			@Override
			public void handle(String line) {
				collection.add(line);
			}
		});
		return collection;
	}
1298301
public static void closeFileStream(InputStream inputStream, String filePath){
        try {
            if (inputStream != null) {
                inputStream.close();
            }
        } catch (IOException e) {
            LOG.error("close file {} occur an IOExcpetion {}", filePath, e);
        }
    }
837268
public static List<String> readLinesWithFilePathOrClasspath(
            String filePathOrClasspath) {
        return JMOptional
                .getOptional(JMFiles.readLines(filePathOrClasspath))
                .orElseGet(() -> getStringListAsOptWithClasspath(
                        filePathOrClasspath)
                        .orElseGet(Collections::emptyList));
    }
1020864
public static <T extends Collection<String>> T readLines(String path, Charset charset, T collection) throws IORuntimeException {
		return readLines(file(path), charset, collection);
	}
327394
public <T> File appendLines(Collection<T> list) throws IORuntimeException {
		return writeLines(list, true);
	}
168569
def writelines(self, lines):
        """"""
        self.make_dir()
        with open(self.path, "w") as f:
            return f.writelines(lines)
693964
public void appendLine(final Line line)
    {
        if (this.lineTail == null)
        {
            this.lines = this.lineTail = line;
        }
        else
        {
            this.lineTail.nextEmpty = line.isEmpty;
            line.prevEmpty = this.lineTail.isEmpty;
            line.previous = this.lineTail;
            this.lineTail.next = line;
            this.lineTail = line;
        }
    }
1000949
public static <T> File appendUtf8Lines(Collection<T> list, File file) throws IORuntimeException {
		return appendLines(list, file, CharsetUtil.CHARSET_UTF_8);
	}
1079730
public static <T> File appendLines(Collection<T> list, File file, String charset) throws IORuntimeException {
		return writeLines(list, file, charset, true);
	}
1107196
private List<String> addPath(List<String> filenames, String additionalPath) {
        ArrayList<String> newFilenames = new ArrayList<String>(filenames.size());
        for (String filename : filenames) {
            newFilenames.add(additionalPath + '/' + filename);
        }

        return newFilenames;
    }
781835
public SVGPath lineTo(double x, double y) {
    return append(PATH_LINE_TO).append(x).append(y);
  }
6700
public SVGPath close() {
    assert lastaction != 0 : "Paths must begin with a move to the initial position!";
    if(lastaction != PATH_CLOSE) {
      buf.append(' ').append(PATH_CLOSE);
      lastaction = PATH_CLOSE;
    }
    return this;
  }
1197980
public static SimpleFeatureCollection readNMEAfile( String path ) throws IOException {

        OmsNmeaFeatureReader reader = new OmsNmeaFeatureReader();
        reader.file = path;
        reader.readFeatureCollection();

        return reader.geodata;
    }