Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- FileReader fr = new FileReader("SelectedChoice.txt");
- BufferedReader br = new BufferedReader(fr);
- String zeile ="";
- while((zeile = br.readLine())!=null) {
- System.out.println(zeile);
- JSONObject choice = new JSONObject(zeile);
- System.out.println(choice);
- }
- br.close();
- fr.close();
- } catch (FileNotFoundException e) {
- e.printStackTrace();
- } catch (IOException e) {
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment