C---read directory
来源:互联网 发布:灰色预测模型软件 编辑:程序博客网 时间:2024/05/17 05:57
#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <dirent.h>#include <errno.h>int main(){DIR *dir;struct dirent *dit;dir=opendir("new");if (dir==NULL){printf("the folder does not exist\n");exit(9);}while ((dit = readdir(dir))!=NULL){printf("%s\n",dit->d_name);}if (closedir(dir)<0){printf("failed to close!\n");exit(9);}return 0;}
- C---read directory
- how to read directory name using std c in the linux
- read jobs pipe: Is a directory. Stop
- 【C#】Directory学习笔记
- c++and c read test
- mkdir: cannot create directory `104nfstest': Read-only file system
- C#Websites Directory to Sunwen
- 12c xdb_wallet default directory
- 报数( Read . pas / c / cpp )
- LINUX C中read,write
- C#NetworkStream Read Write问题
- codeforces 343c Read Time
- C. Read Time----二分答案
- Directory
- go:cannot find GOROOT directory c:\go
- Can't read [proguard.ClassPathEntry@1a0c10f] (No such file or directory)
- Can't read proguard.ClassPathEntry@1a0c10f (No such file or directory)
- fatal: could not read Password for 'https:/username@bitbucket.org': No such file or directory
- Android 2.3(同样适用于之前的版本) 代码混淆proguard技术介绍
- 【转载】Lucene学习笔记(三)
- Google tile和TMS的索引算法
- POJ 3283 典型的字典树trie tree 问题
- 【转载】Lucene学习笔记(四)
- C---read directory
- 【转载】Lucene学习笔记(五)
- 浅谈导航电子地图的组成和制作流程
- 【转载】Lucene学习笔记(六)
- SBJsonParser 解析问题,当服务器返回的value为空时,解析出来的value不为空,而为nsnull
- 【转载】Lucene学习笔记(七)
- Google Maps API v3离线开发包
- Shell脚本中的文件名扩展和判断条件中的空格
- 【转载】Lucene学习笔记(八)--完