SharpConfig icon indicating copy to clipboard operation
SharpConfig copied to clipboard

How can i read conf file?

Open pccai opened this issue 3 years ago • 1 comments

eg. redis.conf:

image

pccai avatar Aug 03 '20 06:08 pccai

SharpConfig expects a '=' by default, because that's the format of cfg/ini files. This behavior is implemented here (and in line 244). In order to parse your config, the call should be changed from IndexOf('=') to IndexOfAny(new[] {'=', ' '}). I may implement this as an optional feature in a future release, but for now, you would have to change the code yourself.

cemdervis avatar Aug 04 '20 12:08 cemdervis