hello, im newbie in VB 6, i have a question :
i have text.file in text box like:
1
2
3
4
5
from that file, how to get average??
any help me,please???

Recommended Answers

VB6, is this what your teacher wants you to use?

Jump to Post

All 4 Replies

VB6, is this what your teacher wants you to use?

commented: That would be incredible. +11
commented: Ditto. +14

Read the file line by line. Convert each line to integer and add each number into a total. At the end, divide the total by the number of numbers processed.

just for learn ....

Then for FREE move up to a current version of VB.net. The only reason to pick up VB6 is if you are on the job getting paid to fix a legecy app from decades ago.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.