准备做控件序列化工作
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -81,6 +82,21 @@ namespace Ramitta.lib
|
||||
}
|
||||
#endregion
|
||||
|
||||
public static void FileWrite(string outputPath, string outputText)
|
||||
{
|
||||
using (StreamWriter writer = new StreamWriter(outputPath, false))
|
||||
{
|
||||
Debug.WriteLine(outputText);
|
||||
|
||||
writer.WriteLine(outputText);
|
||||
}
|
||||
}
|
||||
|
||||
public static string FileRead(string outputPath)
|
||||
{
|
||||
return File.ReadAllText(outputPath);
|
||||
}
|
||||
|
||||
public static async Task<int> RunExternalCommand(string? applicationPath = "explorer.exe", string arguments="", bool UseShellExecute = false, bool CreateNoWindow = false)
|
||||
{
|
||||
ProcessStartInfo startInfo = new ProcessStartInfo
|
||||
|
||||
Reference in New Issue
Block a user