I had hard coded path in my code. Now, I have to use File.separator (or any other class) so the my path will work on Windows or Linux machine.
Why my new code isn't working? Help me overcome the issue.
This is my old code (that works on Windows):
readFile("./Use-cases/"+duplicatedExcelText);
And this is my new code that causes exception and errors:
readFile(File.separator+"."+File.separator+ "Use-cases"+File.separator +
duplicatedExcelText);