Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Java
FileConnection fc = (FileConnection)Connector.open("file:///root1/text.txt");
        if (!fc.exists())
        fc.create();

this code work in my computer..put in my mobile throws Exception(access denied).
Posted
Updated 1-Sep-12 1:29am
v2

1 solution

Access denied Exception occurs when there is no Access to the folder. Either provide the necessary access to do such operation or find another folder that allows such modifications.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900