title: Can not create a temporary file
body: <p>I am using this piece of code to create a temporary file:</p>
  
  <pre><code>String tmpDirectoryOp = System.getProperty("java.io.tmpdir");
  File tmpDirectory = new File(tmpDirectoryOp);
  File fstream = File.createTempFile("tmpDirectory",".flv", tmpDirectory);
  FileOutputStream fos = new FileOutputStream(fstream);
  DataOutputStream dos=new DataOutputStream(fos);
  
  dos.writeChars("Write something");
  
  fstream.deleteOnExit();
  
  fos.close();
  dos.close();
  </code></pre>
  
  <p>But there is no <code>tmpDirectory.flv</code> in my project folder. The write sentence is in a loop, which takes quite long time to finish, so the problem is not that the file is deleted before I could see it.<br>
  Any idea? Thanks in advance</p>