using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using System.IO;
/// <summary>
/// file 的摘要说明
/// </summary>
public class file
{
public file()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
static void Main()
{
StreamReader objreader = new StreamReader("F:\\upfile\\t.txt");
string sline="";
ArrayList arrtext = new ArrayList();
while (sline != null)
{
sline = objreader.ReadLine();
if (sline != null)
arrtext.Add(sline);
} objreader.Close();
foreach(string ss in arrtext)
Console.WriteLine(ss);
Console.ReadLine();
}
}
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using System.IO;
/// <summary>
/// file 的摘要说明
/// </summary>
public class file
{
public file()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
static void Main()
{
StreamReader objreader = new StreamReader("F:\\upfile\\t.txt");
string sline="";
ArrayList arrtext = new ArrayList();
while (sline != null)
{
sline = objreader.ReadLine();
if (sline != null)
arrtext.Add(sline);
} objreader.Close();
foreach(string ss in arrtext)
Console.WriteLine(ss);
Console.ReadLine();
}
}