Edit a txt file c#

Asked

Viewed 102 times

1

This code below is a configuration file .ini

As I do to read the X line and edit 0 or 1, in the app I did everything as checkbox, if check = 1 if false = 0, however, I do not know how to read these lines and pick up only the configurable part q would be 0 or 1 ...

someone can help me?

[AntiLag]
DisableStaticEffect = 0
DisableDynamicEffect = 0
DisableSkillEffect = 0
DisableGlowEffect = 0

[Graphics]
Anisotropy	=	1
MaxAnisotropy	=	32
Linear		=	1
Fog             =       1
TronEffects     =       1
MiniMap		=	1

[Other]
ServerTime	=	2
DisablePing	=	0

  • There is this lib aq that helps a lot: https://github.com/rickyah/ini-parser

  • I’ll see here, thank you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.