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.

24 lines
561 B

1 month ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7. namespace PeisStart.WInForm.ReportTest
  8. {
  9. public class FileHelper
  10. {
  11. public static string WriteAllText(string filePath, string dataJson)
  12. {
  13. File.WriteAllText(filePath, dataJson);
  14. return "Success";
  15. }
  16. public static string ReadAllText(string filePath)
  17. {
  18. string content = File.ReadAllText(filePath);
  19. return content;
  20. }
  21. }
  22. }