Ok, so i want to read some strings from a file and put them in a vector.The file contains 2 strings atm: testmodel.x and tiger.x.The problem is that all vector elements (0 and 1) take the same value: tiger.x instead of the first(0) being testmodel.x and the second(1) tiger.x.In the code above it appears tiger.x instead of testmodel.x(Note that the THROW_ERROR thingy is just my lazy way of debugging the code :P).Another thing, if i move the THROW_ERROR thing inside the while loop it prints testmodel.x as it should.It seems like the next read overwrites the first element or something.