how to match files with a reference file in a folder?

This is a discussion on how to match files with a reference file in a folder? within the C Programming forums, part of the General Programming Boards category; Hi all, My C program generates a image file of .jpg format (code written with the aid of opencv library).Now ...

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    1

    how to match files with a reference file in a folder?

    Hi all,
    My C program generates a image file of .jpg format (code written with the aid of opencv library).Now I have a database folder containing many images.I wanted to match (correlate) the generated image file with each and every file sequentially with the files in the database folder. I have the code to correlate images. But how to perform this sequentially with the files in the database folder?

    -Devanand T

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    344
    No way to do it in standard C, since you're not required to even have a file system. That said, most common compilers have library functions for working with directories. Look at opendir/readdir/closedir for Unix and GetFirstFile/GetNextFile for Windows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting List of files in particular folder
    By Bargi in forum C++ Programming
    Replies: 4
    Last Post: 05-10-2007, 05:00 AM
  2. get files in a folder and more
    By appleGuy in forum Windows Programming
    Replies: 3
    Last Post: 09-05-2006, 09:59 AM
  3. Replies: 4
    Last Post: 06-22-2002, 02:00 PM
  4. How do I match 2 files to print data.
    By sketchit in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 11-12-2001, 05:45 PM
  5. How do you match 2 files?
    By sketchit in forum C Programming
    Replies: 1
    Last Post: 11-10-2001, 08:06 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21