C#是微軟的項目。雖然在Windows下限制頗多,但是到了Linux下卻是開源的,希望大家看看奇妙的程序吧。
1、引用
using System;
using Gtk;
using System.IO;
2、按鈕事件代碼
protected void OnButton2Clicked (object sender, System.EventArgs e)
{
//throw new System.NotImplementedException ();
StreamWriter sw=new StreamWriter("Test.txt");
sw.Write(textview2.Buffer.Text);
textview2.Buffer.Text="Saved to file !";
sw.Close();
}
希望研究類似開源MONO的朋友多多聯繫。