Http://www.codecomments.com/archive371-2006-2-825947.html
Author |
How to get a list of files in a directory ?? |
|
& Lt; TD width = "100%" & gt;
|
what is the best way to get the contents of a file directory into a list? |
& Lt; TD width = "100%" & gt;
|
what is the best way to get the contents of a file directory into a list? the easiest is if you can use. net Framework. then you can use the directoryinfo class, which can directly give you an array of contents. with Win32 you can use the findfirstfile/findnextfile enumeration functions. for MFC cfindfile is maybe a good solution. -- Kind Regards, Bruno. bruno_nos_pam_van_dooren@hotmail.com remove only "_ nos_pam" |
|
& Lt; TD width = "100%" & gt;
adebaene@club-internet.fr , am |
|
aoie wrote: what is the best way to get the contents of a file directory into a list? findfirstfile ("*. * ") findnextfile findclose and filter out ". "and ".. "entries which, most of the time, are of no interest for you. Arnaud MVP-VC |
& Lt; TD width = "100%" & gt;
adebaene@club-internet.fr , am |
|
aoie wrote: what is the best way to get the contents of a file directory into a list? findfirstfile ("*. * ") findnextfile findclose and filter out ". "and ".. "entries which, most of the time, are of no interest for you. Arnaud MVP-VC |
& Lt; TD width = "100%" & gt;
James Brown [MVP] , 7: 59 am |
|
"aoie" wrote in message News: du193k $6g6 $ 1@emma.aioe.org... what is the best way to get the contents of a file directory into a list? Take A Look At The dlgdirlist API James -- Microsoft MVP-Windows SDK www.catch22.net free Win32 source and tutorials |
& Lt; TD width = "100%" & gt;
|
aoie wrote: what is the best way to get the contents of a file directory into a list? for a platform independence Take A Look At boost and it's filesystem Library: http://www.boost.org/libs/filesystem/doc/index.htm /David |
|