Added read from file and write to file for entry