下载CS文件:https://files.cnblogs.com/rexsp/IPExport.rar
/******************************************************************
** File Name:IPExport.cs
** Copyright (c) 2004-2005 PPTech Studio(PPTech.Net)
** Creater:Rexsp(MSN:yubo@x263.net)
** Create Date:2004-12-29 20:10:28
** Modifier:
** Modify Date:
** Description:to export the ip location from qqwry.dat
** Version: IPExport 1.0.0
*****************************************************************
*/

using System;
using System.Collections;
using System.Data;
using System.IO;

namespace PPTech.ESP.Component
{
    
/// <summary>
    
/// ExportData 的摘要说明。
    
/// </summary>

    public class IPExport
    
{
        
私有成员
        
        
构造函数

        
导出数据

        
int转换成IP
        
        
获取国家/区域偏移量

        
获取国家/区域字符串

        
GetStr
    }

}



调用方式:

            #region 测试导出IP地址库
            IPExport exp 
= new IPExport();
            
string toFile = @"D:\Work\PPTechStudio\ip.txt";
            
string fromFile=@"E:\个人资料\IMTools\QQwryUpdate\QQWry.Dat";
            exp.SaveToText(toFile,fromFile);
            
#endregion


http://www.xmlasp.net/n1286c13.aspx

posted on 2007-01-30 16:27  mbskys  阅读(221)  评论(0)    收藏  举报