Skip to content

Commit

Permalink
Merge pull request #5 from LeoChen98/Development
Browse files Browse the repository at this point in the history
修改了一些错误
  • Loading branch information
LeoChen98 committed Dec 23, 2018
2 parents 0e477d0 + 32da9ec commit fe1f9c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AutoLiveRecorder/Class/Bas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ public static object GetJsonValueByKey(Dictionary<string, object> JsonObject, st
/// </summary>
public static void LoadTasks()
{
if (File.Exists("tasks.txt"))
if (File.Exists(Properties.Settings.Default.SavePath + "\\tasks.json"))
{
FileStream fs = new FileStream(Properties.Settings.Default.SavePath + "\tasks.json", FileMode.Open);
FileStream fs = new FileStream(Properties.Settings.Default.SavePath + "\\tasks.json", FileMode.Open);
StreamReader reader = new StreamReader(fs);
string json = reader.ReadToEnd();
fs.Close();
Expand Down Expand Up @@ -289,7 +289,7 @@ public static void SaveTasks()
string json = sb.ToString();
json = "{\"tasks\":" + json + "}";
byte[] bjson = Encoding.UTF8.GetBytes(json);
FileStream fs = File.Open(Properties.Settings.Default.SavePath + "\tasks.json", FileMode.OpenOrCreate);
FileStream fs = File.Open(Properties.Settings.Default.SavePath + "\\tasks.json", FileMode.OpenOrCreate);
fs.Write(bjson, 0, bjson.Length);
fs.Close();
}
Expand Down

0 comments on commit fe1f9c9

Please sign in to comment.