Add some functions to read/write into files
Add defines for read/write permissions (w+, r)