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的朋友多多联系。