Activity Stream
48,167 MEMBERS
62348 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member

    Default read file using VB Script

    can anyone provide me with a VB Script
    VB script to read the contents of a given file ??


    I will add the script like this in my webpage (ISS 7 Web Server)
    PHP Code: 
    <script type="text/vbscript" src="http://domain.com/file_you_will_give_me.vbs"></script> 
    when this vb script runs with the page .. it will diaply the contents of the file that was mentioned in the vb script



    i don't want any eye candy code
    Xeon Reviewed by Xeon on . read file using VB Script can anyone provide me with a VB Script VB script to read the contents of a given file ?? I will add the script like this in my webpage (ISS 7 Web Server) <script type="text/vbscript" src="http://domain.com/file_you_will_give_me.vbs"></script> when this vb script runs with the page .. it will diaply the contents of the file that was mentioned in the vb script Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Not an expert but found this code:
    Code: 
    function readFile(sPath) 
         const forReading = 1 
         dim objFSO, objFile, sData 
         set objFSO = createobject("Scripting.FileSystemObject") 
         set objFile = objFSO.openTextFile(sPath, ForReading) 
         sData = "" 
         do until objFile.atEndOfStream 
             sData = sData & objFile.readLine & vbCrLf 
         loop 
         objFile.close 
         set objFile = nothing 
         set objFSO = nothing 
         readFile = sData 
     end function

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 13th Mar 2012, 02:23 PM
  2. Problem with File Hosts? Please read.
    By Hawk in forum File Host Discussion
    Replies: 0
    Last Post: 24th Jan 2011, 08:55 AM
  3. File hosting script
    By _Ankur_ in forum Webmaster Discussion
    Replies: 5
    Last Post: 8th Aug 2010, 06:52 AM
  4. [Buying] Wanted, Custom Script PHP-MSN/CONVO.READ
    By deelow66 in forum Completed Transactions
    Replies: 0
    Last Post: 27th Apr 2010, 08:28 AM
  5. Script help-file manager
    By sunnyx12x21x in forum General Discussion
    Replies: 1
    Last Post: 23rd Mar 2010, 05:58 PM

Tags for this Thread

BE SOCIAL