Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Reading data from a text file and dumping it to another

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,59636
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Reading data from a text file and dumping it to another
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Reading data from a text file and dumping it to another - 4/30/2008 2:50:04 AM   
  stongbonger

 

Posts: 1
Score: 0
Joined: 4/30/2008
Status: offline
Hi

I am new to VB scripting so this is probably a very simple question - apologies if this is  too simple.

We have an existing procedure that dumps a few lines of text to .txt file. We want to be able to read a specific part of this text file. For example we would like to find out what the 8th to the 16th characters are on the 12th line and dump them somewhere else (maybe another text file) to be used by another program later. How do I do this using VBscripting? Sorry if this isn't very challenging

Cheers & Regards

Stephen
 
 
Post #: 1
 
 RE: Reading data from a text file and dumping it to ano... - 4/30/2008 2:51:15 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
Search for these terms to get you started:

FileSystemObject
ReadAll
ReadLine
Mid

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to stongbonger)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Reading data from a text file and dumping it to another Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts