AllExperts > Experts 
Search      

VB Script

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB Script Answers
Question Library

Ask a question about VB Script
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Dennis Cassøe
Expertise
ASP in many areas, to include them all would not be possible but some examples: Database access (SQL server, access) Forms Functions Components like aspsmartupload, aspupload, FileSystemObject, jmail And much more. Can`t always garenty an answer, but will do my best.

Experience
Have teached courses in ASP (for beginners)
Created
Knowledgebases
E-commerce applications
Ordinary updatable homepages

Organizations belong to
Aarhus School of Business, Denmark
Freelance programmer

Education/Credentials
Graduate student at the Aarhus School of Business, Denmark

 
   

You are here:  Experts > Computing/Technology > Basic > VB Script > Read Text File

Topic: VB Script



Expert: Dennis Cassøe
Date: 8/11/2005
Subject: Read Text File

Question
I'm trying to open a text file and read from a server on the Internet. I'm using vbscript and FileSystemObject then OpenTextFile to open the file. This works great for files on my local machine, but I can't get it to read my server. How can I reference it on my server so I can use it from any pc?

Answer
You can't just connect to a file on a server through the internet. To do this you'll will need to establish a FTP connection, download the file locally, edit it through FSO, and the upload the file again through FTP.

You could also do this through som asp/php scripts, but it is not nearly as simple as editing a file locally.

Dennis

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.