public static String readResource ( String path ) { try { File file = ResourceUtil . getResourceFile ( path ) ; return ResourceUtil . readFromFileIntoString ( file ) ; } catch ( Exception e ) { throw new DataUtilException ( "Failed to load resource" , e ) ; } }
This method looks for a file on the provided path and returns it as a string