08 2021 档案
摘要:bool existsFile(string FileName) { fstream temp(FileName); bool ret = temp.good(); temp.close(); return ret;}
阅读全文
摘要://检测当前是否有csv文件生成 string Comd = "if exist .\Log\\" + Barcode + "_report.csv (del .\Log\\" + Barcode + "_report.csv)"; system(Comd.c_str());
阅读全文
摘要:#include <iostream> #include <Windows.h> using namespace std; int main() { char MAC[215] = "www.baidu"; char DPK[100] = "ping "; strcat(DPK,MAC); cout
阅读全文
摘要:#include <iostream> using namespace std; int main() { cout << "hello world!" << endl; system("Telnet 192.168.1.1"); system("pause"); return 0; }
阅读全文
摘要:#include <fstream>#include <iostream>using namespace std; int main(){ ifstream fin("hello.txt"); if (!fin) { cout << "can not open this file" << endl;
阅读全文
摘要:*实现替换文件中指定的内容 Created by cryking 2012.02.12 */#include<iostream>#include<fstream>#include<string.h>#include<stdlib.h> #include<windows.h> using namesp
阅读全文
摘要:#include <iostream>#include <fstream>#include <sstream>using namespace std; int main() { ifstream in("a.txt"); // 打开foo.txt stringstream ss; ss << in.
阅读全文
摘要:string CopyCMD = "copy MAC.bin "; char CMD_CHAR[100]; CopyCMD.append(Mac + ".bin"); // s1 = "123abc" strcpy_s(CMD_CHAR, CopyCMD.c_str());//strncpy(buf
阅读全文
摘要:#include<cstring>#include<cstdio>#include<iostream>#include <atlstr.h>using namespace std;int main(){FILE *fp_statfile = fopen("123.txt", "a+");CStrin
阅读全文
摘要:Dim fso, regex, strSet fso = CreateObject("Scripting.FileSystemObject")Set regex = CreateObject("VBScript.RegExp")str = fso.OpenTextFile("XML_Atmel_SN
阅读全文