System.Diagnostics.Process.Start("calc");
System.Diagnostics.Process.Start("f:\\start.exe");
TO EXECUTE THE .exe FILE IN RUNTIME
Posted by
Geeks
Labels:
Asp.net
Sunday, September 02, 2007 | 0 Comments
WRITE THE DATA INTO FILE
Posted by
Geeks
Labels:
C#
using(StreamWriter sr=new StreamWriter("F:\\out.txt"))
{
sw.write("Have a nice day");
Response.write("saved");
}
Sunday, September 02, 2007 | 0 Comments
READ THE DATA FROM FILE
Posted by
Geeks
Labels:
C#
using(StreamReader sr=new StreamReader("h:\\appl.txt"))
{
while(sr.ReadLine()!=null)
{
string s;
s=sr.ReadLine();
ListBox1.Items.Add(s);
}
}
Sunday, September 02, 2007 | 0 Comments
Subscribe to:
Posts (Atom)