Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main;
- import java.lang.Math;
- import java.io.*;
- import java.io.BufferedReader;
- import java.io.FileReader;
- import java.io.IOException;
- import java.util.Scanner;
- public class main {
- public static void main(String args[]) throws FileNotFoundException {
- File file = new File( "F:\\Nowy Windows\\Pulpit\\wolf.txt" );
- Scanner in = new Scanner( file );
- try (BufferedReader br = new BufferedReader(new FileReader(file))) {
- String line;
- while ((line = br.readLine()) != null) {
- System.out.println( line );
- }
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement