Hi i am using maven web project and want to write something to file abc.properties. This file in placed in standard /src/main/resource folder. My code is:

```
FileWriter file = new FileWriter("./src/main/resources/abc.properties");
            try {
                file.write("hi i am good");
            } catch (IOException e) {
                e.printStackTrace();

            } finally {
                file.flush();
                file.close();
            }

```

But it does not work as path is not correct. I tried many other examples but was unable to give path of this file. 

Can you kindly help me in setting path of file which is placed in resources folder. 

Thanks