linux文件目录的操作

1、查看目录信息

  opendir      readdir

  stat,lstat,fstat

  将目录按字母排序,alphasort,scandir

    一般的用法是将alphasort作为scandir的参数,比如   struct dirent **namelist;   scandir("/",&namelist,0,alphasort);

 

2、复习了一遍popen,pclose

 

3、明天继续,仔细研究下alphasort函数

 

posted @ 2013-04-25 21:04  stephen@liu  阅读(107)  评论(0)    收藏  举报