What's wrong with this code? which model could be created?
Memory models don't support transactions. Remove the model.commit.
This style is as safer although if an exception occurs in your code, the model is possible logically inconsistent from the applications POV anyway.
answered 15 Dec '12, 12:45
Thank you for suggestion AndyS. Anyway the solution for write back below. :) ...
FileWriter fstream = new FileWriter("c:\books.ttl");
BufferedWriter out = new BufferedWriter(fstream);
String lang = FileUtils.guessLang("c:\books.ttl");
answered 15 Dec '12, 13:18