title: Read a line from specific line until the end of file
body: <p>I want to read from specific line and so on. For instance I want to read from line 8 and until it gets to the end of the file. Could someone teach me the proper way on how to program it?</p>
  
  <p>My current code:</p>
  
  <pre><code>import java.util.*;
  import java.io.File;
  import java.io.FileNotFoundException;
  
  public class Arff {
      public static void main(String[] args) throws FileNotFoundException {
  
          File TextFile = new File("weather.nominal.arff");
          Scanner reader = new Scanner(TextFile);
  
          while(reader.hasNextLine()) {
              String text = reader.nextLine();
              String[] SplitData = text.split(" ");
  
              if (SplitData[0].equals("@relation")) {
                  System.out.println(SplitData[1]);
                  System.out.println();
              }
              if (SplitData[0].equals("@attribute")) {
                  System.out.print(SplitData[1] + " ");
              }
          }
      }
  }
  </code></pre>
  
  <p>weather.nominal.arff</p>
  
  <blockquote>
    <p>@relation weather.symbolic<br>
    @attribute outlook {sunny, overcast, rainy}<br>
    @attribute temperature {hot, mild, cool}<br>
    @attribute humidity {high, normal}<br>
    @attribute windy {TRUE, FALSE}<br>
    @attribute play {yes, no}  </p>
    
    <p>@data<br>
    sunny,hot,high,FALSE,no<br>
    sunny,hot,high,TRUE,no<br>
    overcast,hot,high,FALSE,yes<br>
    rainy,mild,high,FALSE,yes<br>
    rainy,cool,normal,FALSE,yes<br>
    rainy,cool,normal,TRUE,no<br>
    overcast,cool,normal,TRUE,yes<br>
    sunny,mild,high,FALSE,no<br>
    sunny,cool,normal,FALSE,yes<br>
    rainy,mild,normal,FALSE,yes<br>
    sunny,mild,normal,TRUE,yes<br>
    overcast,mild,high,TRUE,yes<br>
    overcast,hot,normal,FALSE,yes<br>
    rainy,mild,high,TRUE,no  </p>
  </blockquote>
  
  <p>Desired output:</p>
  
  <blockquote>
    <p>weather.symbolic  </p>
    
    <p>outlook temperature humidity windy play  </p>
    
    <p>sunny,hot,high,FALSE,no<br>
    sunny,hot,high,TRUE,no<br>
    overcast,hot,high,FALSE,yes<br>
    rainy,mild,high,FALSE,yes<br>
    rainy,cool,normal,FALSE,yes<br>
    rainy,cool,normal,TRUE,no<br>
    overcast,cool,normal,TRUE,yes<br>
    sunny,mild,high,FALSE,no<br>
    sunny,cool,normal,FALSE,yes<br>
    rainy,mild,normal,FALSE,yes<br>
    sunny,mild,normal,TRUE,yes<br>
    overcast,mild,high,TRUE,yes<br>
    overcast,hot,normal,FALSE,yes<br>
    rainy,mild,high,TRUE,no  </p>
  </blockquote>