title: java java.io.FileNotFoundException: ‪D:\qr.jpg (The filename, directory name, or volume label syntax is incorrect)
body: <p><a href="https://i.stack.imgur.com/VuWfP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VuWfP.png" alt=""></a></p>
  
  <p>when i run this code it gets me " java.io.FileNotFoundException: ‪‪D:\qr.jpg (The filename, directory name, or volume label syntax is incorrect)" error</p>
  
  <p>here is my code</p>
  
  <pre><code> try {
          String kk = "fsdfsfs";
          ByteArrayOutputStream out = QRCode.from(kk).to(ImageType.JPG).stream();
          File f = new File("‪‪D:\\qr.jpg");
          FileOutputStream fos = new FileOutputStream(f);
          fos.write(out.toByteArray());
          fos.flush();
      } catch (Exception e) {
          System.err.println(e);
      }
  </code></pre>