خرید بک لینک

Vote count: 0

I am facing some issue while ruing 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 'Caot 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 ago

برچسب: io file delete not working,system io file exists not working,java io file delete not working,system io file copy not working,system io file move not working,system io file writealltext not working,system io file exists not working server,java io file exists not working, نویسنده: استخدام کار تاريخ: جمعه 26 شهريور 1395 ساعت: 3:39

صفحه بندی