I need to give a file in the *.JSON
case. I understand that there is a library for this in case I use json-simple-1.1.1
. As it is necessary to read the file first and then work with it.
My question is as follows:
I keep the file.json
file inside a com.app.json
package and need to access that file.
What would be the most efficient method to access this file within the package?
Note:
This should apply to files .json
, .txt
, .xml
, and others.