Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void processFile(String filename){
- String line;
- BufferedReader br;
- try {
- br = new BufferedReader(new FileReader(filename));
- line = br.readLine();
- } catch (FileNotFoundException e) {
- // deal with file not found exception
- } catch (IOException e) {
- // deal with other io exceptions
- }
- // ...
- }
Add Comment
Please, Sign In to add comment