Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- BufferedReader br = new BufferedReader(new FileReader(fi));
- String s = "";
- String riadok = "";
- while ((riadok = br.readLine()) != null) {
- s += riadok;
- }
- taEditor.setText(s);
- if (br != null) {
- br.close();
- }
- } catch (FileNotFoundException exSubor) {
- JOptionPane.showMessageDialog(null, exSubor.getLocalizedMessage(), "Chyba", JOptionPane.ERROR_MESSAGE);
- } catch (Exception exVsetky) {
- JOptionPane.showMessageDialog(null, exVsetky.getLocalizedMessage(), "Chyba", JOptionPane.ERROR_MESSAGE);
- }
Advertisement
Add Comment
Please, Sign In to add comment