the html man
New member
כתיבה לתוך Resource
יש לי קובץ TXT שנמצא ב-Resources של הטופס. אני מנסה משהו כזה:
זה כאילו לא מזהה את זה כקובץ
אז איך כותבים לתוך קובץ TXT שנמצא ב-Resource? תודה
יש לי קובץ TXT שנמצא ב-Resources של הטופס. אני מנסה משהו כזה:
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); ..... FileInfo FI = (FileInfo)(resources.GetObject(FileNames[0])); StreamWriter W = FI.CreateText(); if (textBox1.Text != string.Empty) W.Write(Now + Environment.NewLine + Environment.NewLine + textBox1.Text); else W.Write(string.Empty); W.Close();
וכאשר מריצים זה השגיאה