[Dev-C++] reading and comparing filenames
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Guillermo G. <ggu...@ma...> - 2005-02-25 00:54:13
|
I have a bit of a dilemma, I have an app that copies files from one = folder to another. Now I need to copy different files from a second folder but I dont want = to get all of them. As newer versions of these files are created, the previous versions are = renamed to "filename.****.bpl" as opposed to "filename.bpl". the "****" is a four digit number representing the file time from the = timestamp. I want to copy only the newer files (filename.bpl) and not = the previous ones (filename.****.bpl).=20 What would be the best way to: a) get a list of the filenames. b) filter down to a list of the newer filenames (w/o the ".****") c) and finally copy only the ones on the filtered list. Guillermo Gutierrez Market Scan Information Systems Software Q.A. Supervisor (818) 575-2000 x2427 ggu...@ma... |