How can I modify the following java code so that it works on J2RE(Java ME) as there is no java.io.files
class in Java ME :(
public static void main(String[] args) {
// TODO code application logic here
try
{
FTPClient client = new FTPClient();
client.connect("serveraddy");
client.login("user", "pass");
client.upload(new java.io.File("C://text.txt"));
} catch(Exception e) {
e.printStackTrace();
}
}