title: How to skip a character when using Scanner
body: <p>I want to read words from a text file which looks like: </p>
  
  <pre><code>"A","ABILITY","ABLE","ABOUT","ABOVE","ABSENCE","ABSOLUTELY","ACADEMIC","ACCEPT","ACCESS","ACCIDENT","ACCOMPANY", ...
  </code></pre>
  
  <p>I read the words using <code>split("\",\"")</code> so I have them in a matrix. Unfortunately I cannot skip reading the first quotation mark, which starts my .txt file, so as a result in my console I have:</p>
  
  <pre><code>"A
  ABILITY
  ABLE
  ABOUT
  ABOVE
  </code></pre>
  
  <p>Do you know how can I skip the first quotation mark? I was trying both </p>
  
  <pre><code>Scanner in = new Scanner(file).useDelimiter("\""); 
  </code></pre>
  
  <p>and <code>parts[0].replace("\"", "");</code>, but it doesn't work.</p>
  
  <pre><code>package list_1;
  
  import java.io.File;
  import java.io.FileNotFoundException;
  import java.util.Scanner;
  
  public class exercise {
    public static void main(String[] args) throws FileNotFoundException{
        File file = new File("slowa.txt");
        Scanner in = new Scanner(file).useDelimiter("\"");     //delimiter doesn't work!
  
        String sentence = in.nextLine();
        String[] parts = sentence.split("\",\"");
        parts[0].replace("\"", "");                 //it doesn't work!
  
        for (int i=0; i&lt;10 ; i++){
            System.out.println(parts[i]);
        }
    }
  }
  </code></pre>