Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void cat (String [] cmd)
- {
- try
- {
- BufferedReader in = new BufferedReader(new FileReader(cmd[1]));
- String input;
- try
- {
- System.out.println("A fajl tartalma: ");
- while ((input = in.readLine()) != null)
- {
- System.out.println(input);
- }
- }
- catch (IOException e)
- {
- System.out.println("Nem sikerult kiirni a fajl tartalmat!");
- }
- }
- catch (Exception e)
- {
- System.out.println("Nem letezik a fajl!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement