Worked on exceptions and added read from file and write to file for string