Replacement of line in file



  • I have a text file. This file needs to replace one line with another. Please tell me how to do this. Language C#.



  • Read the entire file or the part where the text needs to be replaced, in the line, change the line and file it back in the file. You haven't written how exactly you need to replace the line? The number? Substance replacement? If replacement, use the method Replace.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2