Where is the write file location?

#1

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

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

#2

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

3 Likes

#3

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

0 Likes

#4

https://docs.oracle.com/javase/8/docs/api/java/io/File.html

0 Likes

closed #5

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

0 Likes