You need to parse the input yourself (you don't get an input mechanism for free, just by declaring the class). In particular, if you expect there to be "user-friendly" things in your file (like "Number:" and "Name:"), then your input function will need to be ready to use them/ignore them.