back soft

مطالب مرتبط با «java io file delete not working» در back soft | نویسنده: استخدام کار

File IO not working

Vote count: 0 I am facing some issue while running a maven project job on Jenkins. According to code, it should create a new File on the location passed. Using below code for the same. String fileName = "C://DevTools/abc.txt" File file = new File(fileName); file.createNewFile(); //returning false When I surrounded the above code in try-catch block, it threw Exception 'Cannot find the file path on system'. I checked the path in System manually, it was correct.But when I tried creating a new file using FileUtils (Apache common IO), it created the file successfully. Is there any reason behind this? asked 16 secs agoSharath N Let's block ads! بخوانید...

ادامه مطلب