Implementing reading from proc file.