public static String readString(Path targetPath) {
        try {
            return new String(Files.readAllBytes(targetPath));
        } catch (IOException e) {
            return JMExceptionManager.handleExceptionAndReturnNull(log, e,
                    "readString", targetPath);
        }
    }
public static String readString ( Path targetPath ) { try { return new String ( Files . readAllBytes ( targetPath ) ) ; } catch ( IOException e ) { return JMExceptionManager . handleExceptionAndReturnNull ( log , e , "readString" , targetPath ) ; } }
Read string string.

@param targetPath the target path
@return the string