Click to See Complete Forum and Search --> : Can I create a file at client side?


UbiSum
March 27th, 2006, 01:03 PM
Hello:

Somebody can tell me how I can create a text file at client machine.
I proved with StreamWriter class but I think the file was created in my server.

Could someone helps me?

UbiSum

UbiSum
March 28th, 2006, 10:42 AM
Sorry I forgot tell them I'm working with C#

jayender.vs
March 29th, 2006, 12:36 AM
Hello:
Somebody can tell me how I can create a text file at client machine.
I proved with StreamWriter class but I think the file was created in my server.
Could someone helps me?
UbiSumDo u mean something like this:

private void Page_Load(object sender, System.EventArgs e)
{
System.IO.StreamReader sr = new System.IO.StreamReader("c:\\test.txt");
Response.ContentType = "text/plain";
System.IO.TextWriter tx = Response.Output;
tx.Write(sr.ReadToEnd());
sr.Close();
}