Excelerate2004
Programmer
Hello to all,
I have a text file with customers names and their purchases over a 5 month period.
It would look like similar to whats below:
"Name", "M1", "M2", "M3", "M4", "M5"
"Harry Jones", 250, 300, 450, 100, 250
"Henny Penny", 100, 200, 150, 300, 250
"Tom Mack", 110, 320, 150, 345, 430
"Jenn Street", 320, 280, 450, 320, 840
"Mary Jacobs", 430, 350, 700, 630, 290
Using VB6 and reading this text file, lets call it customers.txt, how can I output each customers name with their calculated total purchases into another textfile lets call it custtot.txt that would look like this:
Customer name Total purchases for 5 months
"Harry Jones" 1350
"Henny Penny" 1000...
Does this make sense??
Basically I want to be able to calculate their total purchases from the input text file using VB6 and then output these calculated totals to another text file.
What is the quickest & easiest way to do this??
Thanks for any help I may get!
Cheers!
I have a text file with customers names and their purchases over a 5 month period.
It would look like similar to whats below:
"Name", "M1", "M2", "M3", "M4", "M5"
"Harry Jones", 250, 300, 450, 100, 250
"Henny Penny", 100, 200, 150, 300, 250
"Tom Mack", 110, 320, 150, 345, 430
"Jenn Street", 320, 280, 450, 320, 840
"Mary Jacobs", 430, 350, 700, 630, 290
Using VB6 and reading this text file, lets call it customers.txt, how can I output each customers name with their calculated total purchases into another textfile lets call it custtot.txt that would look like this:
Customer name Total purchases for 5 months
"Harry Jones" 1350
"Henny Penny" 1000...
Does this make sense??
Basically I want to be able to calculate their total purchases from the input text file using VB6 and then output these calculated totals to another text file.
What is the quickest & easiest way to do this??
Thanks for any help I may get!
Cheers!