Ah, so what you are saying is that since INIReader simply adds new values to the key:value pair by catenating them with a new line character. A rather poor design. Anyway, if you want the last value then use find_last_of(). The biggest problem here is whether the package accepts null values If it does then you will need to deal with multiple new lines. Frankly, I think that consider it an error if a null value is found (i.e. if the '/n' is in the first or last position). Anyway, my simple example would still hold.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/pull/1859/c1347842079@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1859#issuecomment-1347842079", "url": "https://github.com/xrootd/xrootd/pull/1859#issuecomment-1347842079", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1