摘要:
scp ~/.ssh/id_rsa.pub username@xxx.xx:~/.ssh/authorized_keys 阅读全文
摘要:
取的文件大小1.int fd = open("data.txt",O_RDONLY); int len = lseek(fd,0,SEEK_END);2.structstatsb; if ((fstat(fd, &sb)) == -1) { perror("fstat"); }sb.st_size3... 阅读全文
摘要:
std::string ="fsaffaf";char *source=&buf[0]; 阅读全文
摘要:
1. std::ifstream t("example.txt"); std::string str((std::istreambuf_iterator(t)), std::istreambuf_iterator());2void readfile(const std::stri... 阅读全文