在Linux下和Windows下遍历目录的方法及如何达成一致性操作
最近因为测试目的需要遍历一个目录下面的所有文件进行操作,主要是读每个文件的内容,只要知道文件名就OK了。在Java中直接用File类就可以搞定,因为Java中使用了组合模式,使得客户端对单个文件和文件夹的使用具有一致性,非常方便。但在C中就不一样了,而且在不同的平台下使用方法也不同。在Linux下实现该功能就非常方便,因为自带有API库,几个函数用起来得心应手(虽然有些小问题,后面说),在Windows下实现就不是那么方便,虽然也有自己的API,但用法有些晦涩难懂,因为没有封装起来,需要自己一步一步进行操作,因为用的是Windows API库函数所以如果对Windows编程不熟悉的话,照搬网上的代码错了也不易调试。为此,我把这些操作都封装成类似Linux下的库函数,一方面简化透明了操作,另一方面(也许更重要)就是移植性,这样将包含该功能的程序从Windows上移植到Linux下就无需改动代码了(删掉实现封装的文件,因为Linux下自带了),当然从Linux下移植到Windows下同样方便(增加实现封装的文件即可),这就是所谓的OCP原则吧(开放封闭原则,具体见:程序员该有的艺术气质—SOLID原则)。好了,首先看下Linux下是如何实现这个功能的。
一、Linux下遍历目录的方法
Linux下实现目录操作的API函数都在头文件dirent.h中,截取部分该文件内容如下:
/** structure describing an open directory. */
typedef struct _dirdesc {
int dd_fd; /** file descriptor associated with directory */
long dd_loc; /** offset in current buffer */
long dd_size; /** amount of data returned by getdirentries */
char *dd_buf; /** data buffer */
int dd_len; /** size of data buffer */
long dd_seek; /** magic cookie returned by getdirentries */
long dd_rewind; /** magic cookie for rewinding */
int dd_flags; /** flags for readdir */
struct pthread_mutex *dd_lock; /** lock */
struct _telldir *dd_td; /** telldir position recording */
} DIR; typedef void * DIR; DIR *opendir(const char *);
DIR *fdopendir(int);
struct dirent *readdir(DIR *);
void seekdir(DIR *, long);
long telldir(DIR *);
void rewinddir(DIR *);
int closedir(DIR *);
struct dirent
{
long d_ino; /* inode number*/
off_t d_off; /* offset to this dirent*/
unsigned short d_reclen; /* length of this d_name*/
unsigned char d_type; /* the type of d_name*/
char d_name[]; /* file name (null-terminated)*/
};
关键部分就是DIR这个结构体的定义,包括文件描述符、缓冲区偏移、大小、缓冲区内容等,下面定义的就是具体的目录操作函数了,有打开目录、读目录、重置读取位置、关闭目录等,这里我所需要的就是打开、读和关闭这三个最基本的目录操作,下面是使用例子:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h> #define MAX_LEN 65535 int main(void)
{
DIR *dir;
struct dirent *ptr;
char *flow[MAX_LEN];
int num = , i = ; if ((dir=opendir("./data")) == NULL)
{
perror("Open dir error...");
exit();
}
// readdir() return next enter point of directory dir
while ((ptr=readdir(dir)) != NULL)
{
flow[num++] = ptr->d_name;
// printf("%s\n", flow[num - 1]);
} for(i = ; i < num; i++)
{
printf("%s\n", flow[i]);
} closedir(dir);
}
运行结果如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQsAAACOCAIAAACpPbraAAAI00lEQVR4nO3d7W7dthnAcd6PbkXXsGbogK5Rtg7NlqTLDRBY3LRN1zWNk3QbeQv7qm/7ssvY0mQo6iFomjr2yu2DDqmHL6KPz6mhU+n/g2DYejt08jwiKVGmcs7dvXtXASgiQ4AaMgSoIUOAGjIEqCFDgBoyBKghQ4CaizOk90u3x8fseXh+tkMrEpYqzZBGqV6pNttPX308NSL022z9LEUq6sWi/comXo/FSDOkU8qI//jgqsOxEYHVKmXEprmKNCWUcyhzo1Q7kcNYgDRD+jhYgzwcTXwdlVESQmeqWuiylpL2OwwrZYbMVaQpffz9kM802JYqypDWx5bJrohJOMofw86tj0KjVBMfbrKGkxKHKP9V+01G7DBXkabIui4UngpkqaIMCRfyLmvVJOHYx0vY1E1cg/P4TlrtRnzVIkNmLJISlZKs1uRujV+zXYY0nep71feq979LZ6oHYHZRhvSlKBnk4ViMiS7uvwZJOCaNH+Wv8Z3fFAowY5Gm5FuL3aQSbTY51epNqhiaZwduzJA2Djgz3YZR8WU+CD3sPFjzcGz8IUPAdRMnnLFIU/KtLfeOl2vMkKSlnoRspVs8BIcMrPzeThKOoVus/XnkStnImbdI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U3sA3rMTd6273KgT6hCsSN5TBzDK7/YCGL1487+//f0f95/a+0/t/S/tx3+xD4z91NrPrP3c2ofWPrL22NovrH1o7Z+s/aO1D4z9+M/2o6f2wyf26LE9OrZ/eFRY7h3be8f26NgePbZHj+3Rk83yoVg2Kx/75Xiz3BPLUTjJcFSpnF9Ye2ztE2uPrX1k7SNrH1r7ubWfWfupsZ/8davlgSktxfW28E/0xNqn1n7Jsqzl//HrZ9J7pDoEAAAAAElFTkSuQmCC" alt="" />
一看这结果就不对,输出的都是同一个文件名(最后一个文件的文件名), 哪里出了问题呢?将代码中// printf("%s\n", flow[num - 1]);这行注释去掉再运行,发现注释处输出的是正确的,两者都是输出的flow数组元素怎么结果不一样呢?经过调试发现是flow[num++] = ptr->d_name;这句代码的问题,因为这是引用拷贝(地址拷贝),所有的flow元素全部指向同一个对象ptr->d_name,虽然ptr->d_name对象每次的内容不同(也就是前面正确输出的原因),但所有内容都共享一个地址,用一个简单的图说明就是:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAADrCAIAAACOz4l2AAAgAElEQVR4nOy9aXRT173wfT49/XSbtXrpcJ+n4V33ynnfm7ZZ7X2a9na16W17IbduC2QoSUNbOE0goQy2AxUESCAJQxg9YGyMsTA2scEYMIMNNmBbYMvzKMmSrPlotKx5ljyQ/X44g45m2ZYsLLbX74N0dLTPPsfS/um//3vvg5imvoJAIBAIJAZI2msAgUAgkKccqAoIBAKBxAGqAgKBQCBxgKqAQCAQSBygKiAQCAQSB6gKCAQCgcQBqgICgUAgcYCqgEAgEEgcoCogEAgEEgeoCggEAoHEAaoCAoFAIHGAqoBAIBBIHKAqIBAIBBIHqAoIBAKBxAGqAgKBQCBxgKqAQCAQSBygKiBx6NJ9daL3q9eugteugp+ywPIiyFPHjyvAqitg1RVwmAPa1en/zEAyD6gKSFQquV/9lAV+XQ1yWgBrCLCGwM1xwFGBTpIOFejAwGOSRxh4pARsJWArQbsStCtBmwK0KUCrArQqwEMFeCgHD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VchJyZ7ALIH4GKEGrLUkKWGzP6oC/1woQ/Ox2T0QYYK0lWQroI0FaSp4KveqHO9cLYXzirhy5gzytVUnBTBvtzAJ7n89MLSXH5dxaXOVkW/asRp9Ezb/Qusn2woiWAq0EZK98IT/KViDaYiuVNxoht+m+s/lV2TXlh6sby6rLlNIJaLNMZBkiK8fkcgzPqZhpIIpgJtZPcv9Lt8BysWjrQstdswFcmXik+k8Nfq8APZMyez+OfyijNL+cUNLY0imXDQ0G9zmTw+qy/knFtk/UxDSQRTgTZyBMKE1z9IUh+2Uw8WhF9oXDrfh6lIjlS80Q4H+Yu/zJ7/R47my/yyr/JLMnmVBbWC6nZhp1qrspCG8a+tvpAjECaDS6yfaSiJYCrQRs65RasvZPL41Paxtqsj/2m2P8GbZn3PFn0bD2VPHLqo+KygNpNXmV1Rk8uvK25oqWq7ckneJzdZddcmLdNB59widgJtF6YCbUQGlxyBcKQWgyQlN1k71dpmaW+DUFrTIaps7eIJWvOq6jNL+RlFZWkFPJQ4MorKMkv5eVX1PEFrZWtXTYeoUSS7rFRLdGbcokA7galAN0EGl5xzi/bZecLrH6Km1PYxJWGXGkbEWlOnWtsiU9V0iEqbLhfWNeVXN6DEUVjXVNp0uaZD1CJTdaq1Yq1JZrSoRpyDJIVbFGgnMBXoG60sLwiv3+iZHqKmNC5Pv80lM1pW1hm1XWKUOBqE0mZpb6daKzNa+m0ujcszRE0ZPdOE149bFGgnMBXoViLLC0cgbJ+dt8/OW6aD5slZvdu7ss6Q6AmUOKSGESVhV9vH9G6veXLWMh2MDJwjEMYtCrQTmAq0DZvXGbprkyhx4BoCMQRTgbZnwzrDNnMdJQ5cQyCGYCoQQghtAVOBEEJoC5gKhBBCW8BUIIQQ2kIKGVpGCCGEbgFTgRBCaAuYCoQQQlvAVCCEENrC/wFG0lLWbVSbjAAAAABJRU5ErkJggg==" alt="" />
当然这个问题也比较好解决,也是比较常见的问题,用字符串拷贝或内存拷贝就行了,给flow每个元素重新申请一块内存。
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h> #define MAX_LEN 65535 int main(void)
{
DIR *dir;
struct dirent *ptr;
char *flow[MAX_LEN];
int num = , i = ; if ((dir=opendir("./data")) == NULL)
{
perror("Open dir error...");
exit();
}
// readdir() return next enter point of directory dir
while ((ptr=readdir(dir)) != NULL)
{
flow[num] = (char*)malloc(sizeof(char));
strcpy(flow[num], ptr->d_name);
num++;
} for(i = ; i < num; i++)
{
printf("%s\n", flow[i]);
} closedir(dir);
}
最终结果就正确了。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOMAAACUCAIAAADuywliAAAMoUlEQVR4nO2d6XYcxRmG6376VjoLjiEONosdgokbDEmAE3MF/Q8TduIEDK3ZtFgIYmHLpgFpFmm0Gi+zSNY6q6SR5UWWbPmc/Ojpnuqq6pGs0bir4X3Od3Sk6q3G9cxX1V2eGvLNlfVvrqzPLG8eOv4WAUBaYCoIBjAVBAOYCoIBTAXBAKaCYABTQTCAqSAYwFQQDHZrqmmH1sLFWjycP5tsVQLtQ2yqQohJiMrtrbe/XRVKQZUr96VKQkwqdLtQcZeDfURsqkaIQTWAQ7u1UKgGVgkxqE1+VckLp55WnRVCVI/3EtgXxKaabmkceC0Md16hW8tpQq80qXE9uG7vYBXSpvpVJS9M9+/W+woDifYhMFW129jgMgSjBf2ns7Nq22AQorgPN7gOnVCHEPunbm8yqB38qpIXdO53Ko+E2j4EpjqJTeN6W0YL0x3OJs0jJ/GeMaM6g/qpU6b6WCVCJWk6zdO7KXbJ7kxVNGKaxDSJab8WzWh6ACBCU01Ra1nwWgjbRnPfZzgwWjCdMrFznmZvcirgY5W84LcKh9EidKPutqrXlTUwbNgR1lTV3fCGd99K3GnPwbkT4qXhtVDsQ6yG1zxO6GOVvOC3qnjm1U5YU5mRHKNOk9sXq5HoBubvhRktnNsX3T4PXUh3vv5WSYhwE/OUShHtA/YG5qhAMICpIBjAVBAM+jxMVTRda3mYpWiG0fpZXKi6ueMpVd3ceScQ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zvjH349+u/+n7/4PtcxOBceWggnFqOJQjRViMQXQj/tq6nTbTe13b4+rqkCWW1NHWUHpj1N5Xy1TN3qz2xxpo7XesZr3Ttm1vQOmTXGZFZBWq3sLOtjptVQvGCZagwtGoMLZ03b1PNXP/5m8v1z6dNdyXdjQx/0pj87f+WLy1njp9nQ0LyTVvfZ1Pz2pelHl4Mv6z5m1ksuUylfc6yvbFrNbpHZ5c3B/G1xZpXb1LqvO5iaO3Phxifnf/6ob+L9nvTpruS70aH3z418+r+p/17KGD/eDA3OhYYWInGXqV/ur6nTT8JUiWQVmWoJ6uTUgelmYwA+s/Znt/4PbywTflQ2dfEAAAAASUVORK5CYII=" alt="" />
二、Windows下遍历目录的方法
在Windows下就比较麻烦了,所要用到的函数都在windows.h中,Windows编程本来就比较繁琐,下面就不一一介绍所用到的函数了,直接给出封装的过程。
1. 首先模拟Linux下自带的头文件dirent.h
不同的是DIR中去掉了一些不需要的属性,及只定义了三个我所需要的操作(按需定义)。
// dirent.h
#ifndef _SYS_DIRENT_H
#define _SYS_DIRENT_H typedef struct _dirdesc {
int dd_fd; /** file descriptor associated with directory */
long dd_loc; /** offset in current buffer */
long dd_size; /** amount of data returned by getdirentries */
char *dd_buf; /** data buffer */
int dd_len; /** size of data buffer */
long dd_seek; /** magic cookie returned by getdirentries */
} DIR; # define __dirfd(dp) ((dp)->dd_fd) DIR *opendir (const char *);
struct dirent *readdir (DIR *);
void rewinddir (DIR *);
int closedir (DIR *); #include <sys/types.h> struct dirent
{
long d_ino; /* inode number*/
off_t d_off; /* offset to this dirent*/
unsigned short d_reclen; /* length of this d_name*/
unsigned char d_type; /* the type of d_name*/
char d_name[]; /* file name (null-terminated)*/
}; #endif
2. 三个目录操作函数的实现
当然这是最关键的部分,我不知道Linux下是怎么实现的(找了下没找到),Windows下实现如下,主要是FindFirstFile()和FindNextFile()这两个Windows函数,对Windows编程不精,也不好解释什么,需要搞明白为啥这样实现请上网搜或MSDN。
// dirent.c
#include <stdio.h>
#include <windows.h>
#include "dirent.h" static HANDLE hFind; DIR *opendir(const char *name)
{
DIR *dir;
WIN32_FIND_DATA FindData;
char namebuf[]; sprintf(namebuf, "%s\\*.*",name); hFind = FindFirstFile(namebuf, &FindData );
if(hFind == INVALID_HANDLE_VALUE)
{
printf("FindFirstFile failed (%d)\n", GetLastError());
return ;
} dir = (DIR *)malloc(sizeof(DIR));
if(!dir)
{
printf("DIR memory allocate fail\n");
return ;
} memset(dir, , sizeof(DIR));
dir->dd_fd = ; // simulate return return dir;
} struct dirent *readdir(DIR *d)
{
int i;
static struct dirent dirent;
BOOL bf;
WIN32_FIND_DATA FileData;
if(!d)
{
return ;
} bf = FindNextFile(hFind,&FileData);
//fail or end
if(!bf)
{
return ;
} for(i = ; i < ; i++)
{
dirent.d_name[i] = FileData.cFileName[i];
if(FileData.cFileName[i] == '\0') break;
}
dirent.d_reclen = i;
dirent.d_reclen = FileData.nFileSizeLow; //check there is file or directory
if(FileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
dirent.d_type = ;
}
else
{
dirent.d_type = ;
} return (&dirent);
} int closedir(DIR *d)
{
if(!d) return -;
hFind=;
free(d);
return ;
}
3. 使用方法
与Linux下使用一模一样,不需要改动一句代码就可应用,但却发现了与Linux下自带实现同样的问题,即也是引用拷贝,如下。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARIAAACDCAIAAADOGAMmAAAZPUlEQVR4nO3d+VsT99YA8Pxj763dXFEURRTcq0Vx7bVV2/e+rba3WhcUFzZFUFkUBQFZQghkI9tk39dJJsvMZJnsk4QA/eH9IUhRIAFaIbXn85zHJ89k5syZ4XsGnMxkGCILJbIERabAuMk/bvQJDCRfT/L1BF9P8HU4X4fzZsLL1f4RPF02CL6eEBhJodEvNPlFZr/IHBCZA2KLX2zxSywBqSUotVKILSRDwwpnTOWKq91JjSeZ/ff9cCfV7qTanVS5kkosocTicmdM5ojKHDG5MyZ3xmWOmNQWEpr8fB3OUWOjSidbgbIQGwu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6ja10RAAWvnWNu51raudYOrsXsiRRXHF/rigAoeN1Sz2upp1vi6ZZ4bWS85NCyH0IIwD9Ov5rqV1P9mlC/JuQIpHcf/WatKwKg4A2baJaRZhnpYSONhSb3VH631hUBUPDY1jTbmh6xpkesaVd4uvz4hbWuCICCN2rLsN+GOzJdceLiWlcEQMEbsaRGLKkRS3rEnHaFp8qPQ9sAkA9THx/Sx5mGxJA+jlEZ+L8NAPn1KPw9ikCvMtinolB/evfRf691RQAUvOcCx3OB44UQ6xRhViK+Ez63ASCv5mHtY6a2haV7MmIwukPF+06sdUUAFLwHXcL7XaK615L6XkTn8MM1aQDkd6tt5FbryJ0Ozt1OntpGbCo9vNYVAVDwfmseuNY8cPMpq7qNrbJ4Nu46uNYVAVDwrjb1X23qv94ydKt1RGXxbNwJbQNAPtebB39rGbzZyrrdMaa24nCbGgD53WofrW4frXnBu/9KqLGTH8H3pAHwwdW+Ftd2ixt6ZY0DKr0z+DF9KycAH0ozU/d4WNcyYnw6ZjZ5IjsOnFzrigAoeB0CZ4fA+XwceyFyW4lE9okDAIBcuuW+brn/tSLQowja/Sm4Jg2A/Po0kT5N5I060q+OOAIT2UfeAgByGdDF+nWxAW20XxOFtgFgSfp1sX5NtE8d6VWF7P5U6VfwFRwA5PH/zGk7NbKpFTYAAAAASUVORK5CYII=" alt="" />
因为这是我们自己实现的代码,所以字符串拷贝不是最佳解决方案,修改原实现代码才是最好的方法,当然如果是为了可移植性,就不需要改动了,就用字符串拷贝这样代码到Linux下就不需要改动了。下面看如何修改原实现解决:
a. 首先定位问题,可以很明显的知道是readdir这个函数的问题;
b. 然后找出问题根源,通过前面的分析可知问题的根源在于每次ptr->d_name使用的是同一内存地址,即ptr地址不变,而ptr是readdir返回的struct dirent指针,所以问题的根源在于readdir返回的dirent结构体地址问题,从上面代码中可以看到static struct dirent dirent; 这句代码,其中dirent的地址就是返回的地址,注意到dirent被定义为static,大家都知道C中static声明的变量调用一次后地址就不变了,存在静态存储区,也就是每次readdir返回的地址都是不变的,但指向的内容每次都被覆写,这就是问题所在;
c. 最后解决问题,知道问题根源后,问题就比较容易解决了,就是每次给dirent重新申请内存,看如下我的做法,注意我这里不能简单的struct dirent *dirent = (struct dirent *)malloc(sizeof(struct dirent))就结束了,看前面dirent结构体定义中char d_name[1];这里我只给d_name一个内存空间,显然不够,所以也要给它申请内存,我这里是按需申请内存,如果定义为char d_name[256];这样的就不需要了(一般文件名不是太长吧)。
struct dirent *readdir(DIR *d)
{
int i; BOOL bf;
WIN32_FIND_DATA FileData;
if(!d)
{
return ;
} bf=FindNextFile(hFind,&FileData);
//fail or end
if(!bf)
{
return ;
} struct dirent *dirent = (struct dirent *)malloc(sizeof(struct dirent)+sizeof(FileData.cFileName)); for(i = ; i < ; i++)
{
dirent->d_name[i] = FileData.cFileName[i];
if(FileData.cFileName[i] == '\0') break;
}
dirent->d_reclen = i;
dirent->d_reclen = FileData.nFileSizeLow; //check there is file or directory
if(FileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
dirent->d_type = ;
}
else
{
dirent->d_type = ;
} return dirent;
}
最终Windows运行结果如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARcAAABsCAIAAADPI2E1AAAMDElEQVR4nO3d63fa5h0HcP63pe26rkviCzjb4tixjdOmadPFdvZnbF13+mZ92XvXNGuarTE4jmObqx3fuApJmIskQOguJMA9Zy9kMAYEkhxzsX+f832hI8SjR+L5YSwkYQumyk0JpNRAqtwQNZBSA4eq/ySKP6n4avEfp+RLyj5c9mGSFxN9qOBL8L4E70MEH8L7EE6LF2G9MdYbZ71xzhvnPQjvSfCehLCJCpuouIlK9WwcR9SyjorrCS3SekJ6iUgvEWkNkdYQca1xOi6uxcUXMfFFTHgeE55H+VOJcFpWovxKhHNHWHeEdYVZV5hdPmCehdjlEPvsgFkOsc9CnCvEL4e55TC/HBFcUcEdEdxRwR0V3VFpJSa5o/JKTHbHZHdMckVlV1R2xWRXTHZF5eVanjXkl1qeReVfIvV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GaF6qyeuSYa75Kr5Gp0fC69ri1dlYbdG5fr6nzaL+X+6FD+23703ZFr3e9FxktHmmRy79OzC/pjY8O48bsUzo01Vbjwm1HgF5TRlbR1JPW6Q6NWNuE1plmGzHSTuf907UdI/u582J6C7eu4iKgpSMtpfKv2n0XLobzfpEu1CA4fxe9isSqllL5aMI59FV03q/QBRwBPXHBq6ggVgtitSBUZfXI2l0dAejqgldRnq/khUpeqMjq0ej0X/rdHQCGUJoupehSii4Jpeo183e7BwDYXDt5127evZNP5WXt3AUAgDmf/4J9vox9/gw/OOTeuXG3390BYAh99iT+2c/xz54gexgDv6UHgBWfPo7883Hk08fRHbT4WzvcAwgA8z55FP7kUfgfj8KvEBp+HRkAK/7+Q0jLK4TWrtIDAJjzN6giAM7m/0HMp1d+mGlDAAAAAElFTkSuQmCC" alt="" />
PS:不知道这里大家有没有注意一个很小的细节,就是输出的不同(用的是一个相同的目录结构),Linux下输出了当前目录.和上层目录..而Windows下只输出了上层目录..,当然这没关系,因为我要的只是下面的文件名即可。OK,终于完成了,中间找bug花了不少时间,嘿嘿~~~
参考资料:
http://blog.csdn.net/lindabell/article/details/8181866
在Linux下和Windows下遍历目录的方法及如何达成一致性操作的更多相关文章
- Linux和Windows的遍历目录下所有文件的方法对比
首先两者读取所有文件的方法都是采用迭代的方式,首先用函数A的返回值判断目录下是否有文件,然后返回值合法则在循环中用函数B直到函数B的返回值不合法为止.最后用函数C释放资源. 1.打开目录 #inclu ...
- [笔记]linux下和windows下的 创建线程函数
linux下和windows下的 创建线程函数 #ifdef __GNUC__ //Linux #include <pthread.h> #define CreateThreadEx(ti ...
- Linux和Windows下查看环境变量方法对比
摘自:Linux和Windows下查看环境变量方法对比 一.查看所有环境变量的名称和值 Linux下:export Windows下:set 二.根据名称查该环境变量的值 Linux下:echo $环 ...
- Linux和Windows下查看环境变量方法(转)
add by zhj: 本文中的Linux是指Ubuntu14.04 以前我对环境变量有误解,以为环境变量就是PATH这个变量.其实环境变量其实有很多,PATH仅仅是其中一个而已,比如在Windows ...
- 回车和换行在linux下和windows下
今天,我总算搞清楚"回车"(carriage return)和"换行"(line feed)这两个概念的来历和区别了. 1. 在计算机还没有出现之前,有一种叫 ...
- lua在linxu和windows系统下的遍历目录的方法
在windows下遍历目录使用lfs库:例如遍历整个目录下的所有文件 local lfs = require "lfs" function findPathName(path) ...
- Linux下遍历目录及文件,更改权限
Linux下遍历目录及文件,更改权限 引言: 我在Linux下搭建android时,将eclipse及sdk复制到/usr/下时,总会出现无法读,无法写写样的问题. 解决方案: 有两个方案: 一.将复 ...
- 【转】linux和windows下安装python集成开发环境及其python包
本系列分为两篇: 1.[转]windows和linux中搭建python集成开发环境IDE 2.[转]linux和windows下安装python集成开发环境及其python包 3.windows和l ...
- 【深度学习】在linux和windows下anaconda+pycharm+tensorflow+cuda的配置
在linux和windows下anaconda+pycharm+tensorflow+cuda的配置 在linux和windows下anaconda+pycharm+tensorflow+cuda的配 ...
随机推荐
- 【vijos1900】 学姐吃寿司
https://vijos.org/p/1900 (题目链接) 题意 给出一个01环,问最少经过多少次相邻互换使得所有的0聚在一坨,所有的1聚在一坨. Solution 源自:LCF Solution ...
- 【bzoj1018】 SHOI2008—堵塞的交通traffic
http://www.lydsy.com/JudgeOnline/problem.php?id=1018 (题目链接) 题意 一个2行C列的矩形网格,网格上的每个点代表一个城市,相邻的城市之间有一条道 ...
- POJ3048 Max Factor
本文版权归ljh2000和博客园共有,欢迎转载,但须保留此声明,并给出原文链接,谢谢合作. 本文作者:ljh2000作者博客:http://www.cnblogs.com/ljh2000-jump/转 ...
- SQL Server判断语句(IF ELSE/CASE WHEN )
1.IF ELSE 不能用在SELECT中,只能是块,比如: IF ... BEGIN ... END ELSE (注意这里没有ELSE IF,要实现只能在下面的块中用IF判断) BEGIN ... ...
- AngularJs angular.Module模块接口配置
angular.Module Angular模块配置接口. 方法: provider(name,providerType); name:服务名称. providerType:创建一个服务的实例的构造函 ...
- 深入分析ConcurrentHashMap
术语定义 哈希算法 hash algorithm 是一种将任意内容的输入转换成相同长度输出的加密方式,其输出被称为哈希值. 哈希表 hash table 根据设定的哈希函数H(key)和处理冲突方 ...
- JSP+Servlet+JavaBean统计页面在线访问次数
统计页面浏览次数:使用的是servlet实现统计次数传递给JSP页面 说明:我做的都比较接地气,意思就是比较简单! 效果图如下: 上代码 counter.java(它真的好简单,啥事不干,只是定义一个 ...
- 【Alpha阶段】第十次Scrum例会
会议信息 挺过编译ddl,开始Alpha阶段最后的调试 时间:2016.11.08 21:30 时长:25min 地点:大运村1公寓5楼 类型:日常会议 NXT:2016.11.10 21:30 个人 ...
- 打包jar文件 外部调用资源 so等
一个非常好的从jar文件中加载so动态库方法,在android的gif支持开源中用到.这个项目的gif解码是用jni c实现的,避免了OOM等问题. 项目地址:https://github.com/k ...
- Servlet3.0中Servlet的使用
目录 1.注解配置 2.异步调用 3.文件上传 相对于之前的版本,Servlet3.0中的Servlet有以下改进: l 支持注解配置. l 支持异步调用. l 直接有对文件上传的支持. 在这篇 ...