I have this very simple piece of java code which works fine...
How do i convert it to j2me as there is no io.file class in j2me
How do i convert it to j2me as there is no io.file class in j2me
Code:
package javaapplication1;
import it.sauronsoftware.ftp4j.FTPClient;
/**
*
* @author bruno
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
try
{
FTPClient client = new FTPClient();
client.connect("ftpserveraddy");
client.login("user", "pass.");
client.upload(new java.io.File("C://text.txt"));
}
catch(Exception e)
{
e.printStackTrace();
}
}
}