Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- string RareLog = e.Text.ToString();
- string path = MyAppPath.Trim() + "RareLog.txt";
- if (!File.Exists(path))
- {
- // Create a file to write to.
- using (StreamWriter sw = File.CreateText(path))
- {
- sw.WriteLine("On " + DateTime.Now.ToShortDateString() + " at " + DateTime.Now.ToShortTimeString() + " a Rare was found : " + RareLog);
- }
- }
- if (File.Exists(path))
- using (StreamWriter sw = File.CreateText(path))
- {
- sw.WriteLine("On " + DateTime.Now.ToShortDateString() + " at " + DateTime.Now.ToShortTimeString() + " a Rare was found : " + RareLog);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement