Example of using STL to read data from file