you can start like this
typedef struct
{
char* text;
void* data;
}DATA_INFO;
DATA_INFO& parseFile("FileName.txt", char* label )
{
char* currentline;
Openfile;
getline( currentline );
remove / from currentline;
comparestring( label, currentline );
{
DATA_INFO structinfo;
structinfo.text = read text;
skip line;
structinfo.data = read data;
return structinfo;
}
};
And clarify where you have doubt.