Creating, reading and writing proc files