/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//========================================== // REGEX //========================================== using System.Text.RegularExpressions; Match m = r.Match(rf); if (m.Success) rf = m.Groups[1].Value; else rf = ""; //========================================== // TEXT ENCODING (utf8 -> cp1252) //========================================== csv = Encoding.GetEncoding("Windows-1250").GetString(Encoding.UTF8.GetBytes( csv ) ); //========================================== // MAKE A QUICK LOG //========================================== private void log(object o) { System.IO.File.AppendAllText("C:/Temp/logmarco4.txt", "-" + Convert.ToString(o)+"\n"); } //========================================== // FORMAT Date //========================================== String.Format("{0:d/M/yyyy HH:mm:ss}", dt); // "9/3/2008 16:05:07"
Comments
