How can I write text file on web application? [modified]
-
I have been looking for many article about writing text file but all of those they talking about window form but I'm looking for web application article and I don't find any. I would like to get help from anybody who knows how to do this work. And also I have a question. -Can I use streamwriter or streamreader with web application? Please help me give up with this problem. Thank you for all reply, Junior boy. -- modified at 3:44 Monday 21st May, 2007
junior boy
-
I have been looking for many article about writing text file but all of those they talking about window form but I'm looking for web application article and I don't find any. I would like to get help from anybody who knows how to do this work. And also I have a question. -Can I use streamwriter or streamreader with web application? Please help me give up with this problem. Thank you for all reply, Junior boy. -- modified at 3:44 Monday 21st May, 2007
junior boy
It's irrelevant that it's a web app, assuming you want to write a text file on the server. On the client, all you can do is have someone download a text file, you can't just write one without the user asking for it.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
It's irrelevant that it's a web app, assuming you want to write a text file on the server. On the client, all you can do is have someone download a text file, you can't just write one without the user asking for it.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
You mean I have to create a text file and keep it on the server first and then if user want that file just download from the server and I can't write the information directly to client,right? And please give me some keyword for looking the ideal of this. Thank you very much.
junior boy
-
You mean I have to create a text file and keep it on the server first and then if user want that file just download from the server and I can't write the information directly to client,right? And please give me some keyword for looking the ideal of this. Thank you very much.
junior boy
You can do that, then you just need to provide a link. You can also set the mime type and stuff a file into a response, using the Response object.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )