Files, such as /dev/log/main, /dev/input/event*are always stored by the OS. If you rolled the file, the end of the file will not be displayed, and new words will be added to your "cat" results continuously.
When I use new FileInputStreamto open such files, it always responds with a permitted permission (probably because they are used by other purposes, as I mentioned earlier). Permissions are not denied for type files /proc/cpuinfo.
Is there any way to read such files? I want to know if there is any user input from /dev/input/event*.
source
share