samedi 30 novembre 2019

How to loop through the string by separating the file paths with space(' ') and store it into the vector/array in C++

I have a string that has multiple file paths like as shown below:

%programdata%\EMR\Registration\Registration_EMR.xml C:\ProgramData\EMR\Registration\RegistrationEMR.xml
%AppData%\EMR\EMR Setup\REGDATA\registration_EMR.xml %AppData%\EMR\EMR Setup\REGDATA\RegistrationEMR.xm

I wanted to loop through the string by separating the file paths with space(' ') and store it into the vector/array.

so that the vector/array contains the below path that is separated with space.

%programdata%\EMR\Registration\Registration_EMR.xml 
C:\ProgramData\EMR\Registration\RegistrationEMR.xml
%AppData%\EMR\EMR Setup\REGDATA\registration_EMR.xml 
%AppData%\EMR\EMR Setup\REGDATA\RegistrationEMR.xml

Could anyone please help me?

Aucun commentaire:

Enregistrer un commentaire