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

Join Date: Dec 2010
Location: Athens/Greece
Age: 50
Posts: 582
Originally Posted by Sim085 View Post
That was another question I was going to ask. Basically I have a simple property file.
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
alkis is online now  
Page generated in 0.07086 seconds with 11 queries