Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package javaapplication8;
- import java.io.File;
- import java.io.FileNotFoundException;
- import java.util.Scanner;
- /**
- *
- * @author MichalWochnik
- */
- public class JavaApplication8 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) throws FileNotFoundException {
- File file = new File("C:/Users/MichalWochnik/Documents/NetBeansProjects/JavaApplication8/src/javaapplication8/litwo.txt");
- Scanner in = new Scanner(file);
- int i=0, b=0;
- while(in.hasNext() != false)
- {
- String zdanie = in.nextLine();
- System.out.println(zdanie);
- }
- // TODO code application logic here
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement