I have to do an FTP connection and i don't know how


Here my code


URL u= new URL("ftp", "bd1.netc.net", -1, "/qwerty/joe/donnees/question.txt");

URLConnection c= u.openConnection();


After that i don't know what to do

I've try to open a stream to read the file but it throws me an exception (password). I don't know where i can set the password


Please help me.


thanks in advanced and sorry for my english