private void LoadRecentList()
{
RFiles = new List<string>();
RFiles.Clear();
string path = PackageEditorDataFolder + "recentFiles.log";
if (File.Exists(path))
{
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
byte[] buff = new byte[4];
fs.Read(buff, 0, 4);
int count = BitConverter.ToInt32(buff, 0);
for (int i = 0; i < count; i++)
{
fs.Read(buff, 0, 4);
int len = BitConverter.ToInt32(buff, 0);
string s = "";
for (int j = 0; j < len; j++)
s += (char)fs.ReadByte();
AddRecent(s);
}
fs.Close();
}
}