working with text file in web

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: working with text file in web

  1. #1
    Join Date
    Feb 2006

    Lightbulb working with text file in web

    i want to create a dynamic web page in a specific folder through writing using i/o package and then we write the hyperlink of that page using i/o package in .js file.Then problem is that we give the physical path of the .js file but in web we can not do this i want how to give the logical path of the .js file
    Last edited by saurabh; 03-17-2006 at 07:28 AM. Reason: c

  2. #2
    Join Date
    Aug 2003
    It might be very beneficial to get the root directory of the web-server. This way, you can basically just knock off this part of the file names and use an absolute path on the webserver. If you wanted it to be relative, I think you would need to StringTokenize it and look for the common part of the path and generate a relative path based on that. This isn't really hard, but I think that knowing the root directory of the webserver would be useful for a lot of other things as well, so I think that the first solution would be the way to go.

    Hope this helps.

  3. #3
    Join Date
    Feb 2006
    i am not getting ur point
    in file handling it require the absolutepath like "c:\tomcat\root"
    but in the web how can i get the path in the web as our website is uploaded in wb server in web

Similar Threads

  1. Reading and writing lines from a text file...
    By Jenks in forum VB Classic
    Replies: 6
    Last Post: 05-24-2005, 02:22 PM
  2. File Locking a Text File on a Network Drive
    By Miles Tones in forum VB Classic
    Replies: 1
    Last Post: 05-20-2005, 01:57 PM
  3. Why Web Services are Important
    By Constance J. Petersen in forum .NET
    Replies: 13
    Last Post: 08-28-2002, 10:06 PM
  4. setting up text file downloads
    By sean in forum Web
    Replies: 1
    Last Post: 07-27-2001, 11:08 AM
  5. Replies: 0
    Last Post: 04-17-2000, 01:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center