You can do what you want. The question is, what do you want to do?Quote:
Ok, so how do I go about that? What would that parameter be? And why couldn't I just open the file in the constructor rather than passing it from main and then opening it?
a) Open the file and pass the opened stream to the constructor.
b) Pass the filename to the constructor and open the file in the constructor.