1. Ankit Dixit Univ. Roll No. 100420825160 [1] Program 1.WAP to read and write a string into a file. #include #include #include…