My need is to open a file (temp file) and write something to it How can I do it so that it would work for all the OS types (at least for unix and windows)
Below is my current code Every time, I want to test something on windows, I will be to toggle between these lines (comment/uncomment)
//File file = new File("C:\\PM_DELETE_CARRIER_TEST_FOLDER\\"+carrier.getCarrierId()+"Carrier_BackUp_Restore.sql");
File file = new File("/app/jakarta-tomcat/logs/Carrier_BackUps/"+carrier.getCarrierId()+"Carrier_BackUp_Restore.sql");