SaveData
This commit is contained in:
22
Server/SaveData.cs
Normal file
22
Server/SaveData.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
class SaveData
|
||||
{
|
||||
public SaveData()
|
||||
{
|
||||
}
|
||||
|
||||
public void WriteData(string data)
|
||||
{
|
||||
using (StreamWriter sw = File.AppendText(Directory.GetCurrentDirectory() + "/data.txt"))
|
||||
{
|
||||
sw.WriteLine(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user