I would like to achieve the following:
BufferedInputStream is = new BufferedInputStream(System.in);
int c = 0;
while((c=is.read())!=-1)
Files.copy(is, path3, StandardCopyOption.REPLACE_EXISTING);
Hoewver it gets stuck in waiting System.in forever.. Any workaround for that?
Thanks in advance.