public partial class readfile : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string[] sname=removespecialChar("F:\\pravat.txt"); //create text file on ur computer
for (int i=0;i<sname.Length;i++)
{
Response.Write(sname[i]);
}
}
public string []removespecialChar (string path)
{
string data = File.ReadAllText("F:\\pravat.txt");
char[] spchar=new char[]{'=','%','#','&','*'};
string[] sname=data.Split(spchar);
return sname;
}
}
{
protected void Page_Load(object sender, EventArgs e)
{
string[] sname=removespecialChar("F:\\pravat.txt"); //create text file on ur computer
for (int i=0;i<sname.Length;i++)
{
Response.Write(sname[i]);
}
}
public string []removespecialChar (string path)
{
string data = File.ReadAllText("F:\\pravat.txt");
char[] spchar=new char[]{'=','%','#','&','*'};
string[] sname=data.Split(spchar);
return sname;
}
}
No comments:
Post a Comment