摘要:
1、FTP连接的函数View Code void CFtpClientDemoDlg::OnBnClickedConnect(){ FILETIME fileTime; CString str,szFile,szFtpInfo; HINTERNET hFind; UpdateData(TRUE); BYTE b1,b2,b3,b4; m_ServerAddr.GetAddress(b1,b2,b3,b4); CString strServerAddr; strServerAddr.Format(_T("%d.%d.%d.%d"),b1,b2,b3... 阅读全文
posted @ 2012-10-25 21:09
蓝箭一号
阅读(208)
评论(0)
推荐(0)
摘要:
1、读取文件,逐行读取的函数View Code 1 void read_line(FILE* fp,char* line) 2 { 3 if (fp == NULL)//判断指针是否为空 4 { 5 return; 6 } 7 int i = 0; 8 9 char ch = fgetc(fp);10 while(ch != '\n' && !feof(fp))11 {12 line[i] = ch;13 i++;14 ch = fgetc(fp);15 }16 ... 阅读全文
posted @ 2012-10-25 20:55
蓝箭一号
阅读(243)
评论(0)
推荐(0)

浙公网安备 33010602011771号