I have managed to read a file name and two strings. Now I need to search the file for a lines that maches string1 and replace them with string2. And I have no idea how to do that. Can anyone help me please.
what operating system ? what version assembly language? what assembler?
Essentually you have to open two files -- input file for input and result (output) file for output. In a loop, read a line from the input file, then write to the output file either the original file or the replacement. Finally close both files.
I recommend you check out the repe cmpsb string command. It is used to compare two strings for equality.
Also, listen to Ancient Dragon. He knows what he is talking about. Unless you know exactly what tricky stuff to do, you must do it as he suggested: read the source file while writing a new file. Once done, you can delete the source file and rename the new file to have the same name that the source file did, if you want.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...