16,471
社区成员
发帖
与我相关
我的任务
分享
CString str;
CStdioFile file(_T("proxy.txt"),CFile::modeRead);
while(file.ReadString(str))
{
CString left,right;
str.TrimLeft();
int i = str.Find(_T(' '));
int j = str.GetLength();
left=str.Left(i);
right=str.Right(j-i-1);
m_vector_ip.push_back(left);
m_vector_port.push_back(right);
//MessageBox(left);
//MessageBox(right);
};
file.Close();
for(int i=0;i<m_vector_ip.size();i++)
{
m_proxy=m_proxy+m_vector_ip[i]+":"+m_vector_port[i];
}
UpdateData(FALSE);