레지스트리에서 XML 파일을 스트리밍하고 복원 한 후 가능합니다. 가능합니까?레지스트리에서 xml 파일을 스트로크하고 복원 한 후
이 코드로 만들기를 시도하지만 응답이 없습니까?! 무엇이 문제입니까? 이에
enter code here
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
MemoryStream stream = new MemoryStream();
BinaryFormatter formatter = new BinaryFormatter();
List<int> f = new List<int>();
f.Add(4);
formatter.Serialize(stream, f);
byte[] binary = stream.ToArray();
string yu = Encoding.UTF8.GetString(binary);
RegistryKey key = Registry.Users;
RegistryKey key2 = key.OpenSubKey(".DEFAULT", true);
key2.SetValue("my4",yu,RegistryValueKind.String); // "why writed empty string in registry
}
}
** 이진수는 XML이 아닙니다 **. – SLaks
정확히 XML로 무엇을하고 있다고 생각하십니까? –