I should not need to use OOP to answer this either.
Yet std::ifstream is an object... Are you actually trying to write this in C for whatever reason? Because that will have an affect on our answer.
EDIT: Let me elaborate, your biggest obstacle is that the second line has a variable number of arguments and from assignments I've done myself I remember that teachers do not like it when you hard code the length of arrays when you don't need to. The simple solution to this is to use a dynamically sized container like a list but that would be an OOP approach which for some reason you do not want to use. We can work around this in the old school 'C' fashion but personally I'm better at C++.