static void Main(string[] args) { string str = File.ReadAllText("1.txt", Encoding.Default); MatchCollection mc = Regex.Matches(str, @"([-a-zA-Z_0-9.]+)@([-a-zA-Z0-9_]+(\.[a-z...
以下是读取QQwry.Dat数据库类库using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace QQwry.dat纯真IP数据库读取 { public class IPSearch { Fil...
/// <summary> /// 通过域名获得域名解析的IP地址 /// </summary> /// <param name="url">网址</param> /// <returns>返回域名解析的IP地址</returns> private string GetYuMingIP(string ...
private ImageFormat GetImageFormat(FileStream file, out string format) { byte[] sb = new byte[2]; //这次读取的就是直接0-1的位置长度了. file.Read(sb, 0, sb.Length); //根据文件头判断 string strFlag = sb[0...
/// <summary> /// DateTime转时间戳 /// </summary> /// <param name="dt">DateTime</param> /// <returns>时间戳(秒)</returns> public static long GetUnixTimeStamp(...
C#根据银行卡号获取银行名称核心代码/// <summary> /// 银行信息 /// </summary> public class BankInfo { #region 数组形式存储银行BIN号 /// <summary> /// 银行 BIN 号 /// </summary> private ...
/// <summary> /// 下载 302跳转文件 /// </summary> /// <param name="parentUrl">父Url</param> /// <param name="url">302跳转的Url</param> /// <r...
public class FTPHelper { private static string FTPCONSTR = "ftp://192.168.1.23:21"; private static string FTPUSERNAME = "lqwvje";//FTP服务器的用户名 private static string F...
using System; using System.Net.Http; using System.Text.RegularExpressions; using System.Threading.Tasks; using Newtonsoft.Json.Linq; class Program { static async Task Main(string[] args) {...
C#: using System; using System.Net; using System.Web; class CSharpExample { public static void Main(string[] args) { try { Console.WriteLine(makeAPICall()); ...