Guest User

Untitled

a guest
Apr 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. private String setInput() throws IOException {
  2.        
  3.         for (Integer i = 1; i <= 1; i++) {
  4.             in = new FileInputStream("/Users/Stu/nlp_texts/bus" + i.toString() +".txt");
  5.             int c;
  6.             buf = new StringBuffer();
  7.             do {
  8.                 c = in.read();
  9.                 buf.append((char) c);
  10.             } while (c != -1);
  11.            
  12.         }
  13.         return fileString = buf.toString();
  14.     }
Add Comment
Please, Sign In to add comment