How to add a large number set to a text file using vbs

I need to make a text file with the number from 00000000000001 to 99999999999999 and have included a text file with the starting numbers but it needs to count clear up to the 14 digit with 9's total.  This text file I need to use to compare upc's in a grocery store and need that big of file to make this work. Test.txt
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
I don't think you want to do that, that file alone would be over 1400 terabytes in size, way larger than you want to work with.  Not sure what you need to accomplish, but I don't think that is a viable way to solve it.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bill PrewIT / Software Engineering ConsultantCommented:
How were you going to use this?  It feels like you just wanted to validate that some given value was a valid 14 digit number?  If so then there are other ways to accomplish that in VBS, like using regular expressions, etc.

dondudleyAuthor Commented:
Thanks for the info, didn't realize the file size would be that BIG.  I will work on another way to get the info needed for the UPC comparison needed.

Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

If you're interested in just validating that the number if 14 digits (as @billprew suggested) then you can use the following regular expression:

Open in new window

dondudleyAuthor Commented:
Great job as BP always does.

Bill PrewIT / Software Engineering ConsultantCommented:
Thanks for the feedback, glad that was useful.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.