Computing.Net > Forums > Programming > VBScript begin of file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VBScript begin of file

Reply to Message Icon

Name: fejfbo
Date: November 5, 2009 at 11:29:03 Pacific
OS: Windows 7
Subcategory: General
Comment:

Hello, I need your support.
I have to read a text file two times. Is there a command that return at the begin of text file to re-read every line?

Thank's



Sponsored Link
Ads by Google

Response Number 1
Name: gtaion
Date: November 5, 2009 at 15:17:59 Pacific
Reply:

The easiest way I can think of to tell it to read it twice is to put it in a For Next Loop.

For i = 0 to 1
CreateObject("Scripting.FileSystemObject").OpenTextFile("TEXT.TXT").ReadAll
Next


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: VBScript begin of file

Add txt to beginning of file in.bat www.computing.net/answers/programming/add-txt-to-beginning-of-file-inbat/17110.html

Skip input file/go to beginning of script www.computing.net/answers/programming/skip-input-filego-to-beginning-of-script/19852.html

Program to rename tons of files? www.computing.net/answers/programming/program-to-rename-tons-of-files/11667.html