creating a file
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:

        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();
    			}

may i ask to the admin for upgrading this web site's graphics? ;)
creating a file
===

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:

        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();
    			}

may i ask to the admin for upgrading this web site's graphics? ;)