Louise Posted May 14, 2008 at 11:26 AM Report Share #185003 Posted May 14, 2008 at 11:26 AM Eu precisava de ler uma determinada linha do ficheiro fiz FileReader ler = new FileReader("Novo.txt"); LineNumberReader line = new LineNumberReader(ler); line.setLineNumber(2); //escolho a linha 2 System.out.println(line.readLine()); // imprime a linha 1 Bigada Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now