
Originally Posted by
lovely_334801
hi
i am working on NetBeans 4.1 IDE with Nokia tool kit.
My problem is how to append the text in a text file that is the part of jar.
i can read the text but when i am trying to write the trext a Secutiry
Exception is occures that application is not Authorised to use restricted API.
my real problem is How to write text in a text file in append mode on
NetBeans 4.1 IDE with Nokia tool kit.
my code is
String uri="file:///root1/test1.txt";
OutputConnection connection =
(OutputConnection) Connector.open(uri,Connector.WRITE);
OutputStream out = connection.openOutputStream();
PrintStream output = new PrintStream(out);
output.println("Testing to write text in file .....");
out.close();
connection.close();
Plz help me........