I have a file with the following structure:
File
title1
(
data1
(
variableName 1
)
data2
(
variableName2 someString someOtherVariable
)
)
I would like to create a class that would retrieve the information between parenthesis.
What C++ data type is more suitable to collect this information?
Would it be efficient to go into the file, find a keyWord
and the opening and closing parenthesis and return a structure with file path, starting and end line. And implement functions to look into the file? Is there something of kind already built into C++?
I would appreciate suggestions on the strategy.
Aucun commentaire:
Enregistrer un commentaire