title: Loading Images from a folder (Using C, OpenCV, VisualStudio 2008)
body: <p>I am trying to load images from a folder and I am using C, OpenCV, VC++ 2008 Express Edition. My images are located on the desktop and have different names such as Tom.jpg, Flash.jpeg etc.
  I want to load images from this folder in my program and do some experiments on images one at a time at a time and save the results of this experiment in .txt file and the name of the .txt file should be same as that of the .jpeg file. as in the experimental data performed on Tom.jpg should be stored in Tom.txt and Flash.jpg should be stored in Flash.txt etc.</p>
  
  <p>I can do the above procedure(Loading image and storing its data in text file) for one image. i can display 10 images one after one after reading the filenames from a text file which I created manually. But in this case, all the data of different pics gets stored in the same text file and I am unable to distinguish between different sets of data. </p>
  
  <p>can anyone suggest a way to load one image at time from a folder and do the necessary experiments and store the data in a different .txt file and doing the same thing for maybe 1000's of images ?</p>