reading int's and floats...
I need to read integers and floating point data from a file and calculate the mean and variance. I know how to perform the calculations, however I don't know where to start when it comes to reading in this data correctly. Any examples would be appreciated.
sounds good but what do you think of
using sscanf. The data file is only a sinle column of 10 integers and floats. Let me know if you think sscanf will work.
twm, never mind...figured it out..
thanks a bunch for your input...I should have been more patient with myself and just figured it out (like I did) before I posted. I'm still glad I asked the questions though. You showed me alternative methods that I will use in the future. Tanks again!