Java’da uygulamamı kurduğum yerde işletim sisteminden bağımsız olarak temp (geçici dosya) oluşturmak istiyorum. Bunun için bir yöntem var mıdır?
comments
1 references
// Comments are closed.
Şunu buldum ben işinizi görür mü bilmiyorum.
File tempFile = File.createTempFile("tempfiles", ".tmp"); // tempFile.deleteOnExit(); YARATILANI SILMEK ICIN String path = tempFile.getAbsolutePath(); System.out.println("Temp file created: " + path);https://stackoverflow.com/questions/16691437/when-are-java-temporary-files-deleted