I have a project where I like to read data from json files. However, the files cannot be found. I have already tried the java directory, as well as src/main/resources. For reading the files I use:
InputStream is = new FileInputStream(file);
where file is the name of the file, eg. "test.json".
Is there a specific directory I need to use? When I use a directory like "c:\temp\test.json" it works.
For the project I'm using IntelliJ and Maven.