title: creating a file and all parent directories
body: <p>is there a method that allows in Android 2.1 to create a new file and, if relative directories do not exist, to create them too?
  make me know, 'cause this snippet does not work:</p>
  
  <pre><code>    static String separator = File.separator;
  public static final String DIRECTORYBIGLIETTI = "C:" + separator + "Users" + separator + "7-Spode" + separator + "Documents" + separator + "Android" + separator + "HUVWSZE"; ///sdcard/.SpodeApps/HUVWSZE/
  public static final String FILEBIGLIETTI = DIRECTORYBIGLIETTI.concat(separator + "lista.txt");
  
  File cartellainputoutput = new File(DIRECTORYBIGLIETTI);
          if(!cartellainputoutput.exists())
          {
              cartellainputoutput.mkdirs();
          }
          File fileinputoutput = new File(FILEBIGLIETTI);
          if(!fileinputoutput.exists())
              try {
                  fileinputoutput.createNewFile();
              } catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
  </code></pre>
  
  <p>may i ask to the admin for upgrading this web site's graphics? ;)</p>