hoshie329
asked on
VB Script read txt
I have a need to open a txt file and then generate multiple files from it. this is a sample of what each line looks like, "31997869692",8/19/2011,"B AKR,CH R" the only thing that matters is the first number without the quotes. this number needs to be wrote to a file and then saved with the name being the number.RSD the extension has to be caps.
I do not know how to do this, I have an input box for the file name, that is about as far as I can get
I do not know how to do this, I have an input box for the file name, that is about as far as I can get
dim strfile
strfile = InputBox("Please enter file name", "File Info", ,100 ,200)
WScript.Echo strfile
sample.txt
ASKER
it is the second example 14997177449.RSD. Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This works perfectly, great solution. Thanks
Great, glad that worked out.
~bp
~bp
~bp