title: Create file in jsp servlet
body: <p>When I create a file in java <code>servlet</code>, I can't find that file for opening. This is my code in <code>servlet</code>:  </p>
  
  <pre><code>FileOutputStream fout;
      try {
          fout = new FileOutputStream("title.txt");
          new PrintStream(fout).println(request.getParameter("txttitle"));
          fout.close();
          System.out.println(request.getParameter("txttitle"));
      } catch (Exception e) {
          System.out.println("I can't create file!");
      }
  </code></pre>
  
  <p>Where I can find that file?</p>