I can not create a binary file.
src/main/java src/main/resources For example, the resources are application.properties and I get it so
InputStream is = getClass().getClassLoader().getResourceAsStream("application.properties"); But how to write to the same directory file? I do so.
FileOutputStream fos = new FileOutputStream("Files.bin"); ObjectOutputStream serial = new ObjectOutputStream(fos); serial.writeObject(filesFound); serial.flush(); fos.close(); serial.close(); But nothing happens and no file where there is.