June 26th, 2010, 07:55 PM
|
#1 (permalink)
|
|
New Member
Join Date: Jun 2010
Posts: 8
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
ftp in j2me
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
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();
}
}
}
|
|
|