added ReadString function to file