Guest User

Untitled

a guest
May 27th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public ClassCalc(String filename) throws IOException {
  2. try{
  3. load(new BufferedReader(new FileReader(filename)));
  4. }catch(FileNotFoundException e2) {
  5. System.out.println(filename + " not found");
  6. }
  7. }
  8.  
  9. private load(BufferedReader r) throws IOException {
  10. while(true){
  11. String s = r.readLine();
  12. if (s != null) {
  13. eval(s);
  14. } else {
  15. break;
  16. }
  17. }
  18.  
  19. }
Add Comment
Please, Sign In to add comment