using System;
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
namespace new_app
{
/// <summary>
/// myxml 的摘要說明
/// </summary>
public class myxml : System
{
private const string FILE_NAME = "d:MyFile
private void Page_Load(object sender
{
// 在此處放置用戶代碼以初始化頁面
write_file(FILE_NAME);
}
//一個創建文件的方法
public void write_file(string FILE_NAME)
{
if (File
{
Console
return;
}
StreamWriter sr = File
sr
sr
sr
}
#region Web 窗體設計器生成的代碼
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 該調用是 ASP
//
InitializeComponent();
base
}
/// <summary>
/// 設計器支持所需的方法
/// 此方法的內容
/// </summary>
private void InitializeComponent()
{
this
}
#endregion
}
}
From:http://tw.wingwit.com/Article/program/net/201311/14145.html