read file using os module.