Editing a TXT file C #

Good Morning This code below is an INI configuration file. How do I read the X line and edit 0 or 1, in the app I have everything set as…