Guest User

Untitled

a guest
Feb 18th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. try {
  2. FileReader fr = new FileReader("SelectedChoice.txt");
  3. BufferedReader br = new BufferedReader(fr);
  4.  
  5. String zeile ="";
  6.  
  7. while((zeile = br.readLine())!=null) {
  8. System.out.println(zeile);
  9. JSONObject choice = new JSONObject(zeile);
  10. System.out.println(choice);
  11. }
  12.  
  13. br.close();
  14. fr.close();
  15. } catch (FileNotFoundException e) {
  16. e.printStackTrace();
  17. } catch (IOException e) {
  18. e.printStackTrace();
  19. }
Add Comment
Please, Sign In to add comment