hi
I have a problem on how to read text from file and perform operations on it for example
i have this text file that include
//name-//sex---------//birth //m1//m2//m3
fofo, male, 1986, 67, 68, 69
momo, male, 1986, 99, 98, 100
Habs, female, 1988, 99, 100, 87
toto, male, 1989, 67, 68, 69
lolo, female, 1990, 89, 80, 87
soso, female, 1988, 99, 100, 83
I want to read it and get the following
avg m1 : //average of all m1
avg m2 : //average of all m2
avg m3 : //average of all m3
avg Male M1 : //average of all m1 for males only
avg Male M2 : //average of all m2 for males only
avg Male M3 : //average of all m3 for males only
avg Female M1 : //average of all m1 for females only
avg Female M2 : //average of all m2 for females only
avg Female M3 : //average of all m3 for females only
Its allwoed to use regular experssion and the system.IO
can any one help