How do I scan through a string in C++?

To get started, use FString::ParseIntoArrayLines to get an array of strings.
Then in the loop use FString::Split where InS = FString(“:”)
On the left side there will be a key, and on the right side there will be a value.

Also, you probably want to get rid of the # character in the parameter name, use FString::RightChop.

As far as I understand, at the beginning there is information about the package, and then the data that directly interests us.

If FString::Split = false or FString::StartsWith = false where InPrefix = FString (“#”) then this is a description of the package or comment, this line must be ignored, otherwise we parse it into key and value as described above.

1 Like