[26/Jun/2005 10:55:05] Admin - update IpAccessList set Enabled='1' where Name='酒店客房' and Value='10.0.0.101'
[26/Jun/2005 10:55:05] Admin - update IpAccessList set Enabled='1' where Name='酒店客房' and Value='10.0.0.102'
[26/Jun/2005 10:55:05] Admin - update IpAccessList set Enabled='1' where Name='酒店客房' and Value='10.0.0.103'
[26/Jun/2005 10:55:05] Admin - update IpAccessList set Enabled='1' where Name='酒店客房' and Value='10.0.0.104'
[26/Jun/2005 10:55:05] Admin - update IpAccessList set Enabled='1' where Name='酒店客房' and Value='10.0.0.105'
[26/Jun/2005 10:55:05] Admin - update IpAccessList set Enabled='1' where Name='酒店客房' and Value='10.0.0.106'
[26/Jun/2005 10:55:05] Admin - update IpAccessList set Enabled='1' where Name='酒店客房' and Value='10.0.0.107'
[26/Jun/2005 10:55:05] Admin - update IpAccessList set Enabled='1' where Name='酒店客房' and Value='10.0.0.108'
[26/Jun/2005 10:56:32] Admin - update IpAccessList set Enabled='0' where Name='酒店客房' and Value='10.0.0.108'
[26/Jun/2005 10:56:32] Admin - update IpAccessList set Enabled='0' where Name='酒店客房' and Value='10.0.0.107'
[26/Jun/2005 10:56:32] Admin - update IpAccessList set Enabled='0' where Name='酒店客房' and Value='10.0.0.106'
[26/Jun/2005 10:56:32] Admin - update IpAccessList set Enabled='0' where Name='酒店客房' and Value='10.0.0.104'
[26/Jun/2005 10:56:32] Admin - update IpAccessList set Enabled='0' where Name='酒店客房' and Value='10.0.0.105'
[26/Jun/2005 10:56:32] Admin - update IpAccessList set Enabled='0' where Name='酒店客房' and Value='10.0.0.103'
[26/Jun/2005 10:56:32] Admin - update IpAccessList set Enabled='0' where Name='酒店客房' and Value='10.0.0.102'
[26/Jun/2005 10:56:32] Admin - update IpAccessList set Enabled='0' where Name='酒店客房' and Value='10.0.0.101'
[26/Jun/2005 10:56:44] Admin - update IpAccessList set Enabled='0' where Name='酒店内部机器' and Value='10.0.0.10'
[26/Jun/2005 10:56:44] Admin - update IpAccessList set Enabled='0' where Name='酒店内部机器' and Value='10.0.0.3'
[26/Jun/2005 10:56:44] Admin - update IpAccessList set Enabled='0' where Name='酒店内部机器' and Value='10.0.0.4'
[26/Jun/2005 10:56:44] Admin - update IpAccessList set Enabled='0' where Name='酒店内部机器' and Value='10.0.0.5'
[26/Jun/2005 10:56:59] Admin - update IpAccessList set Enabled='1' where Name='酒店内部机器' and Value='10.0.0.5'
[26/Jun/2005 10:56:59] Admin - update IpAccessList set Enabled='1' where Name='酒店内部机器' and Value='10.0.0.4'
[26/Jun/2005 10:56:59] Admin - update IpAccessList set Enabled='1' where Name='酒店内部机器' and Value='10.0.0.3'
[26/Jun/2005 10:56:59] Admin - update IpAccessList set Enabled='1' where Name='酒店内部机器' and Value='10.0.0.10'问一下,象这个信息存在文本文件中,用VC怎么获取!!!!,
急!!!!,在此先谢了!!!

解决方案 »

  1.   

    不知道你要获取什么信息?
    时间?是否允许,名字,ip地址?读取文件然后解析
    //伪代码
    CStdioFile f;
    f.Open("t.txt",CFile::modeRead);
    CString s = f.ReadLine();
    //解析
    s.Find("Value=");
    f.Close();
      

  2.   

    我要获取的是里面的时间,地址,enable的值,IP,然后到VC中去分析,能帮我把代码贴出来让我看看吗???
      

  3.   

    以后自己先想想,这个是一个写代码的人最基本的功底 FILE *fp; int nFldNo, nWidth, nScale;
    char cType;
    char szBuffer[256], szFormat[100], szDefValue[100]; if ((fp = fopen("_Dictionary.cfg", "rt")) == NULL)
    {
    ....
    return -1;
    }
    while (fgets(szBuffer, sizeof(szBuffer) - 1, fp) != NULL)
    {
    nFldNo = nWidth = nScale = cType = 0;
    memset(szFormat, 0, sizeof(szFormat));
    memset(szDefValue, 0, sizeof(szDefValue)); sscanf(szBuffer, "%d %*s %*s %s %s", &nFldNo, szFormat, szDefValue);
    sscanf(szFormat, "%c%d.%d", &cType, &nWidth, &nScale);
    ....
    }
    fclose(fp);370 交易金额 12 F12.4
    420 银行流水号 30 C30
      

  4.   

    主要是要知道sscanf这个函数,先去看看帮助吧
      

  5.   

    CStdioFile sf;
    sf.Open
    sf.Read
    sf.ReadString
    ...
    sf.Close;