I'm trying to read a text file and write the content of that text file into another text file.
Code is as below
String oldName= "file:///C:/data/text1.txt";
String newName= "file:///C:/data/text2.txt";
FileConnection fci = (FileConnection)Connector.open(oldName);
FileConnection fco = (FileConnection)Connector.open(newName);
Whenever i want to run it through neatbeans6.0 it shows that root isn't accessible.