Hello everybody ... It's time for me to ask you some help.
I follow the Data Access Basic Tutorial .. This part works very good but I have a problem :
after the creation of my DataStore (shapefile, ...), I would like to delete the file. I use the following code :
File doc = new File("url of my shape file");
FileInputStream fis = new FileInputStream(doc);
byte buf = new byte;
System.out.println(new String (buf));
The result is that the file isn't deleted. I think the problem is the following : I open the file, I use it with the datastore, and I should probably close it before trying to delete it ...
I don't find any "close" function in order to the shapefile opened withb my dataStore ...
How could I process ?
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !