Hello,
I have a database of images and I want to store paths of all those images to a text file (lets say "images.txt"). I can then use this text file in c++ to extract images one by one by using getline() in a loop.
I don't know how to store image paths to a text file. Please suggest a way...
std::ofstream out("images.txt");
while (/*There is images to store*/) {
//presuming that path variable stores path to current file:
out << path << std::endl;
}