08 2021 档案

摘要:bool existsFile(string FileName) { fstream temp(FileName); bool ret = temp.good(); temp.close(); return ret;} 阅读全文
posted @ 2021-08-30 10:02 江南王小帅 阅读(29) 评论(0) 推荐(0) 编辑
摘要://检测当前是否有csv文件生成 string Comd = "if exist .\Log\\" + Barcode + "_report.csv (del .\Log\\" + Barcode + "_report.csv)"; system(Comd.c_str()); 阅读全文
posted @ 2021-08-27 16:14 江南王小帅 阅读(48) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <Windows.h> using namespace std; int main() { char MAC[215] = "www.baidu"; char DPK[100] = "ping "; strcat(DPK,MAC); cout 阅读全文
posted @ 2021-08-25 16:50 江南王小帅 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; int main() { cout << "hello world!" << endl; system("Telnet 192.168.1.1"); system("pause"); return 0; } 阅读全文
posted @ 2021-08-25 16:50 江南王小帅 阅读(33) 评论(0) 推荐(0) 编辑
摘要:#include <fstream>#include <iostream>using namespace std; int main(){ ifstream fin("hello.txt"); if (!fin) { cout << "can not open this file" << endl; 阅读全文
posted @ 2021-08-25 16:48 江南王小帅 阅读(35) 评论(0) 推荐(0) 编辑
摘要:*实现替换文件中指定的内容 Created by cryking 2012.02.12 */#include<iostream>#include<fstream>#include<string.h>#include<stdlib.h> #include<windows.h> using namesp 阅读全文
posted @ 2021-08-25 16:45 江南王小帅 阅读(41) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>#include <fstream>#include <sstream>using namespace std; int main() { ifstream in("a.txt"); // 打开foo.txt stringstream ss; ss << in. 阅读全文
posted @ 2021-08-25 13:51 江南王小帅 阅读(87) 评论(0) 推荐(0) 编辑
摘要:string CopyCMD = "copy MAC.bin "; char CMD_CHAR[100]; CopyCMD.append(Mac + ".bin"); // s1 = "123abc" strcpy_s(CMD_CHAR, CopyCMD.c_str());//strncpy(buf 阅读全文
posted @ 2021-08-20 16:21 江南王小帅 阅读(180) 评论(0) 推荐(0) 编辑
摘要:#include<cstring>#include<cstdio>#include<iostream>#include <atlstr.h>using namespace std;int main(){FILE *fp_statfile = fopen("123.txt", "a+");CStrin 阅读全文
posted @ 2021-08-09 12:02 江南王小帅 阅读(442) 评论(0) 推荐(0) 编辑
摘要:Dim fso, regex, strSet fso = CreateObject("Scripting.FileSystemObject")Set regex = CreateObject("VBScript.RegExp")str = fso.OpenTextFile("XML_Atmel_SN 阅读全文
posted @ 2021-08-04 15:21 江南王小帅 阅读(264) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示