I need a help with file handling. I have got a Excel sheet containing 100 rows and i have a text file with 20 rows of data . I want to read each line in a row (all 100 lines ) one by one from the excel sheet and replace a particular row line always in the text file and save the modified (new ) text file with another name in a directory . How can i do that in matlab ? I am new to it and its needed for me to work further on my proj . Please some one help me regarding this.