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
dondudleyAsked:
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 PrewCommented:
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.

~bp
0

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 PrewCommented:
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.

~bp
0
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.

Thanks,
Don
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

gman84Commented:
If you're interested in just validating that the number if 14 digits (as @billprew suggested) then you can use the following regular expression:
^[0-9]{14}$

Open in new window

0
dondudleyAuthor Commented:
Great job as BP always does.

Don
0
Bill PrewCommented:
Thanks for the feedback, glad that was useful.

~bp
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.