Last active
March 3, 2016 04:41
-
-
Save Makesh/406c56bd064024a84e09 to your computer and use it in GitHub Desktop.
Java 8 : Read
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String jsonContent = null; | |
String url = '/Users/makesh/temp/temp.json' | |
try { | |
jsonContent = new String(Files.readAllBytes(Paths.get(url))); | |
} catch (IOException e) { | |
logger.error(e.getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment