Skip to content

Instantly share code, notes, and snippets.

@fabiorecife
Created October 10, 2011 18:44
Show Gist options
  • Select an option

  • Save fabiorecife/1276145 to your computer and use it in GitHub Desktop.

Select an option

Save fabiorecife/1276145 to your computer and use it in GitHub Desktop.
Load a file line by line
File file = new File("./src_teste/JsonFromXmlAjaxResponseTest01.xml");
BufferedReader buf = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
String line ;
StringBuilder build = new StringBuilder();
while ((line = buf.readLine()) != null) {
build.append(line);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment