mekasu0124

Untitled

Mar 14th, 2024
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. public class Helpers
  2. {
  3.     private static readonly string _tosPath = "TermsOfService.txt";
  4.  
  5.     internal string GetTosText()
  6.     {
  7.         var fileData = File.ReadAllText(_tosPath);
  8.  
  9.         if (fileData != null)
  10.         {
  11.             return fileData;
  12.         }
  13.         else
  14.         {
  15.             return """
  16.                    No Tos Text Was Found
  17.  
  18.                    If you believe this to be in error then try restarting
  19.                    the program, otherwise, please create a new issue on
  20.                    the github repo page.
  21.  
  22.                    -Mekasu
  23.                   """;
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment