thank you very much prelude. im working on understand microarray technology and I am in the super noob stage of analysing the thousands and thousands of amounts of data bioinformatics produces.

you have answerd my problem and i should have the code up for a test soon. one question though.. when i open the file to write the mean variable to where does my program save that file? is it where i saved my .cpp at?