|
by carl@vinebranches.com via i am a camera on 5/3/2006 5:22:00 PM
I saw a coworker use this technique the other day and thought it clever. I'm sure he's not the first to use it, but it can come in handy especially in static functions without a formal logger.
This C# code will generate null files in your "temp" directory. The filenames will be sequenced based on a timestamp at the front, then the information you're tracking behind.
The Regex.Replace is necessary to weed out the characters that Windows does not allow in filenames, and the length check keeps
... [ read more ]
|