Hi J2ME developers..
I have try'd a lot accessing a file from my memory card (Motorokr E6) and i have fail'd completely.. can any 1 please help me with this.....
can any 1 please show me how to read and write to a file in the memory card..
Code:
try{
OutputConnection con =(OutputConnection)Connector.open("file:///SDCard/textFile.txt",Connector.WRITE);
OutputStream out =con.openOutputStream();
PrintStream ps = new PrintStream(out);
ps.println("amithgc");
ps.close();
con.close();
}catch (Exception e){System.out.println(e);
}
the above code wont work.. please help.. i have search'd enf.. i didnt get any solution which will work on my linux phone (MotoRokr E6)