Can someone help me with a program if possible .. I have similar files with file name like prog1.in , prog2.in .... progr100.in which has some 47 rows of data in a txt format (almost same files ). I have another file name file1.txt having 100 rows just 0 or 1 . I want a program that reads file1.txt row by row each associated with prog1.in,prog2.in.... prog100.in and if the row in file1.txt is 1 I want no change in ".in " file to be same and if its 0 that tht row numbers( suppose x) progx.in to be modified . The file is modified something like.. I want to delete 7 rows , 1st row being the row where i find the word "TIME"..