public static String loadFile(String filePath)
	{
		String result = "";
		FileInputStream inputStream = null;
		DataInputStream dataInputStream = null;
		StringBuilder stringBuilder = new StringBuilder();
		String charset = "";
		try
		{
			inputStream = new FileInputStream(filePath);
			String line = "";
			byte[] array = IOUtils.toByteArray(inputStream);
			charset = guessEncoding(array);

			if (charset.equalsIgnoreCase("WINDOWS-1252"))
			{
				charset = "CP1252";
			}
			inputStream = new FileInputStream(filePath);
			dataInputStream = new DataInputStream(inputStream);
			BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(dataInputStream, charset));
			while ((line = bufferedReader.readLine()) != null)
			{
				if (stringBuilder.length() > 0)
				{
					stringBuilder.append("\n");
				}
				stringBuilder.append(line);
			}

		}
		catch (FileNotFoundException e)
		{
			// TODO Auto-generated catch block
			_logger.fatal(e.getMessage(), e);
			e.printStackTrace();
		}
		catch (IOException e)
		{
			// TODO Auto-generated catch block
			_logger.fatal(e.getMessage(), e);
			e.printStackTrace();
		}
		finally
		{
			if (dataInputStream != null)
			{
				try
				{
					dataInputStream.close();
				}
				catch (IOException e)
				{
					_logger.fatal(e.getMessage(), e);
					e.printStackTrace();
				}
				result = stringBuilder.toString();
			}
		}

		return result;
	}