code: public static List<String> readFileToList(final File file, final String encoding)
  		throws IOException
  	{
  		final List<String> fn = new ArrayList<>();
  		try (BufferedReader reader = (BufferedReader)StreamExtensions.getReader(file, encoding,
  			false))
  		{
  			// the line.
  			String line = null;
  			// read all lines from the file
  			do
  			{
  
  				line = reader.readLine();
  
  				// if null break the loop
  				if (line == null)
  				{
  					break;
  				}
  				fn.add(line);
  
  			}
  			while (true);
  		}
  		catch (final IOException e)
  		{
  			throw e;
  		}
  		return fn;
  	}
docs: Reads every line from the given File into a List and returns the List.
  
  @param file
  The file from where to read.
  @param encoding
  The encoding to read.
  @return The List with all lines from the File.
  @throws IOException
  When a io-problem occurs.