private static String[] readFile(String file, int lines, String language) throws IOException 
	{
		String encoding = getEncodingForLanguage(language);
		BufferedReader in;
		if (encoding == null)
			in = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
		else
			in = new BufferedReader(new InputStreamReader(new FileInputStream(file), encoding));
			
		String str;
 
		StringBuilder ret = new StringBuilder();
		
		while ((str = in.readLine()) != null)
		{
			ret.append(str).append("\n");
		}
		
		in.close();
		return ret.toString().split("\n");
	}