![]() |
Directory listing in C
Hi all
does anyone know how to do a directory listing in C? Also how I can include program parameters. Thanks! |
Re: Directory listing in C
For your first question, it depends entirely upon your system. For your second, you need to explain what you mean. Have a look here, both posts.
|
Re: Directory listing in C
Yes it is possible to do directory listing using C.
I hope this will suffice. No need for explaination ! Code:
#include <stdio.h>findnext function call returns the next file in the directory Comments as always welcomed ! |
Re: Directory listing in C
Offtopic comment:
Have the code block's when you have code snippets in the posts - http://www.go4expert.com/misc.php?do=bbcode#code |
| All times are GMT +5.5. The time now is 02:16. |