Where is the write file location?

Using following code to store temp file,Where is the file actual store location?

IOUtils.write(json, new FileOutputStream(new File(jsonFileName)), "utf-8");

Well, you specify the path yourself in jsonFileName. In doubt, just set a breakpoint and inspect its value.


got it.jsonFileName stands for fileName only,not including location path.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.