I want to make a class whose object has three data members which are firstname,lastname and age. I have inputs in a file with details of one object space separated and next object in next line. How do I read the space separated inputs and store them in firstname,lastname,age respectively?