So the whole idea is about a program that will search inside the txt,which I will give,every number that starts with _ (Example : _10165,_09957 ),and with the results it will search the directory which i give.Example C:\Id Boxes and tell me which of the numbers that searched from the txt are not found in this folder as archives (other .txts).Then cut those that found and ask me to create a folder with them.
I have attached a copy of how exactly the txt looks.In this txt there are the numbers that the program will "see" and perfrom the operations i said before.
The txt as you will see is in lines,every line has a number that starts with _(5 numbers follow).That number is an archive (a .txt) in another directory.What i want,is to search in that directory and find those archives.Then move them to folder wich i will name.It's imporant to tell me wich archives are not found...
I am very new to programming world,with no experience.
Some guy in another place posted me this code but it gets me build error,and not sure if fixed will do the job i want to do
using namespace std;
int main(int argc, char* argv)
str << line;
str >> newValue;
summa += newValue;
cout << summa << "\n";
I've been searching this for long,but...nothing yet.
Any post,idea would be much appreciated.
Thanks for spending time reading my post