using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.IO; using System.Text; using Sog; namespace bill_statistics { public partial class LogWrapper { /*public static void PrintWinPercent() { foreach (KeyValuePair pair in BillAlldays.Instance.m_billAllDays) { DateTime dateTime = pair.Key; BillInfoEveryDay info = pair.Value; if(dateTime.Month < 6) { continue; } string fileName = string.Format("{0}_{1}_{2}_winPercent.txt", dateTime.Year, dateTime.Month, dateTime.Day); FileStream fstream = new FileStream(fileName, FileMode.Create); StreamWriter fileWriter = new StreamWriter(fstream, Encoding.UTF8); string strMessage = "uid\t胜率\t"; fileWriter.WriteLine(strMessage); foreach (var user in info.m_activeUser.Values) { strMessage = string.Format("{0}\t{1}", user.Uid, user.winPercent); fileWriter.WriteLine(strMessage); } fileWriter.Dispose(); fstream.Dispose(); } }*/ } }