Re: Read a File of /dev/*
Originally Posted by
JAG Franco
Hi
I need to read a file, but this file is written by a driver, for example /dev/myFile.
I want to read the file with Java, and I have tried with java.io classes, I can read other files, but I can't read myFile, maybe the reason is that the file is always changing with the information of the device.
I tried with C# and I couldn't either.
Thank you
Have you checked the file permissions of /dev/myFile?
Make sure it has read bits on in order to get it read by your Java code .
“Progress is made by lazy men looking for easier ways to do things”
— Robert A. Heinlein
Bookmarks