|
» W3Exchange http://www.w3exchange.com/index.html » C/C++ http://www.w3exchange.com/view_forum-id-32.html » C File Functions http://www.w3exchange.com/view_topic-id-763.html |
| dinapster - 2007-02-05 20:44:14 |
Hi everybody. In C running in the Unix environment, there are many ways of getting the directory listing. One I know is to use the ftw library (the way I currently implement it), the other is to pipe from the ls, also sometimes you could use dirent.h. I realize that this is an OS dependent thing. If somebody knows an the easier way to get a list of files or directories in C please share (Yes, I googled this. However, I did not find anything I did not already know). |
» Print this topic |