started programming read and write file