Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    only read a txt file on server

    Hi everyone,

    I would like to know if is possible in javascript or Vbscript read (only read) a simple .txt file who is located on server.

    If it's possible how can I do?

    This is my piece of code in vbscript that read a local .txt file
    ...
    dim fso, ts, retstring, Mostra
    Const forReading = 1
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set ts = fso.OpenTextFile ("E:/PROGETTO/XML/storico.txt", ForReading)
    ...
    ...

    What type of modified can I do to this?

    Thanks in advance.

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Well, there are a few post on that issue in the Post a JavaScript forum here. I wrote one here, Vladdy wrote one here, Skyzyx wrote one for XML files here.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Isn't this what the FAQ is for?

    Moreover, congratulations on your new status David. Very much deserved.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •