目录处理教程 [英] Directory handling tutorial

查看:94
本文介绍了目录处理教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要递归读取目录及其子目录和文件.
我知道我可以使用opendir()和readdir()使用相同的功能.

但是不熟悉该怎么做.

Hi
I need to recursively read a directory and its sub directories and files present.
I know i can use the same using opendir() and readdir().

But not familiar with how to do it. Is there any tutorial which can explain me headers used and examples for the same?

推荐答案

这里有两个链接可能对您有用:
文件和文件夹 [读取目录 [
Here are two links you might find useful:
Files and Folders [^]
Read Directory[^]


这实际上是您开始使用Google并努力寻找的时候了在发布此论坛之前,请回答这些简单问题.您似乎是逐行编写程序,但没有使程序正常运行所需的功能或结构的背景知识.
It really is about time you started using Google for yourself and making an effort to find the answers to these simple questions before posting in this forum. You seem to be writing a program line by line with no background knowledge of the functions or structures you need to get the program to work.


这篇关于目录处理教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆