Added my file API to write and read the txt file