View Single Post
Old 01 May 2020, 19:07   #7
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 50
Posts: 582
Quote:
Originally Posted by Sim085 View Post
That was another question I was going to ask. Basically I have a simple property file.
Code:
key1=value1
key2=value2
etc..
At the moment I am reading the file to memory and then traverse the memory checking each character and using flags to determine if I am building a key (at start or after new line is reached) or a value (after the '=' is seen). At the moment I am ignoring extra spaces at the start and end of a key or a value.

Are there helper function readily available to which I can pass a stream of characters and get the key,value list for it rather than have to do this myself?
I am not aware of standard C lib implementation on this one. I think you have to write your own. This might help https://stackoverflow.com/questions/...edirect=1&lq=1
alkis is online now  
 
Page generated in 0.07086 seconds with 11 queries