You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
687 B

  1. using System;
  2. using System.IO;
  3. namespace Doorstop
  4. {
  5. public static class Loader
  6. {
  7. public static void Main(string[] args)
  8. {
  9. using (TextWriter tw = File.CreateText("doorstop_is_alive.txt"))
  10. {
  11. tw.WriteLine($"Hello! This text file was generated by Doorstop on {DateTime.Now:R}!");
  12. tw.WriteLine($"I was called with {args.Length} params!");
  13. for (int i = 0; i < args.Length; i++)
  14. tw.WriteLine($"{i} => {args[i]}");
  15. tw.WriteLine("Replace this DLL with a custom-made one to do whatever you want!");
  16. tw.Flush();
  17. }
  18. }
  19. }
  20. }