code: public static void writeLinesToFile(final Collection<String> collection, final File output,
  		final String encoding) throws IOException
  	{
  		final StringBuffer sb = new StringBuffer();
  		for (final String element : collection)
  		{
  			sb.append(element);
  			sb.append("\n");
  		}
  		WriteFileExtensions.writeStringToFile(output, sb.toString(), encoding);
  	}
docs: Writes all the String-object in the collection into the given file.
  
  @param collection
  The collection with the String-object.
  @param output
  The file where the String-object will be writing.
  @param encoding
  The encoding from the file.
  @throws IOException
  Signals that an I/O exception has occurred.