I'm trying to write a function that loads data from a file into a templated class object. This is tricky because the fucntion has to ensure that the data in the file can be read in as the data type of the object.<br><br>i.e. If the file contains:<br>1<br>22<br>333<br><br>how can I get the function to recognize that those are integers, yet still work if the file contains characters?<br><br>I'm just looking for ideas.