if(!f.exists()) return;  BufferedReader br = new BufferedReader(new FileReader(f)); int c; StringBuilder sb = new StringBuilder(); while((c = br.read()) != -1){ if(c == '\n'){ sb.append((char) c);
if(f.exists()){ BufferedReader br = new BufferedReader(new FileReader(f)); int c; StringBuilder sb = new StringBuilder(); while((c = br.read()) != -1){ if(c == '\n'){ sb.append((char) c); ls.add(sb); sb = new StringBuilder(); } else { sb.append((char) c); } } if(sb.length() > 0)
    public void loadFile(File f)  throws IOException {        ls.clear();        if(!f.exists()) return;        BufferedReader br = new BufferedReader(new FileReader(f));        int c;        StringBuilder sb = new StringBuilder();        while((c = br.read()) != -1){            if(c == '\n'){                sb.append((char) c);                ls.add(sb);                sb = new StringBuilder();            } else {                sb.append((char) c);            }        }        if(sb.length() > 0)            ls.add(sb);        file = f;        updateScreen();    }