title: Reading a file from my desktop and printing each line from it
body: <p>dear all here i have this code:</p>
  
  <pre><code>File file = new File("flowers_petal.txt");
      Scanner in = new Scanner(file);
      while(in.hasNext()){
          String line = in.nextLine();
          System.out.println(line);
  </code></pre>
  
  <p>I want to read from a file and print each line, but this code doesn't work because of some exceptions (throw exception??), how can i put it in a way that it would read from the flowers.txt file, which is on my desktop and will print each line from this file in the console?</p>