Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How can I write text file on web application? [modified]

How can I write text file on web application? [modified]

Scheduled Pinned Locked Moved C#
questionhelptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Junior Boy
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • J 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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      J 1 Reply Last reply
      0
      • C Christian Graus

        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 )

        J Offline
        J Offline
        Junior Boy
        wrote on last edited by
        #3

        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

        C 1 Reply Last reply
        0
        • J 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

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          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 )

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups