Given my project structure below, My Project structure
How do I access findLoginDetails.txt? Currently, I have
public static String getQueryFromExternalFile(final String path) {
String path1 = "src/main/resources/sql/C0001/findLoginDetails.txt";
String query = "";
try {
  BufferedReader br = new BufferedReader(new FileReader(path1));
  StringBuilder sb = new StringBuilder();
  String line = br.readLine();
  while (line != null) {
    sb.append(line);
    sb.append(System.lineSeparator());
    line = br.readLine();
  }
  query = sb.toString();
  br.close();
} catch (Throwable e) {
  query = "";
  e.printStackTrace();
}
return query;
}
But it's not working. Any idea why it's not working?
 
     
     
    