摘要: scp ~/.ssh/id_rsa.pub username@xxx.xx:~/.ssh/authorized_keys 阅读全文
posted @ 2014-05-16 23:08 anjsxz 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 取的文件大小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... 阅读全文
posted @ 2014-05-16 20:16 anjsxz 阅读(127) 评论(0) 推荐(0) 编辑
摘要: std::string ="fsaffaf";char *source=&buf[0]; 阅读全文
posted @ 2014-05-16 10:02 anjsxz 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1. std::ifstream t("example.txt"); std::string str((std::istreambuf_iterator(t)), std::istreambuf_iterator());2void readfile(const std::stri... 阅读全文
posted @ 2014-05-16 09:29 anjsxz 阅读(157) 评论(0) 推荐(0) 编辑