D
Dave Mill
I have implemented a class which performs operations on some file
throughout different methods in the class.
I did this by making the ifstream a private class member and opening the
file in the constructor,
however someone told me this was bad practice to have the stream as a
class attribute.
what is the best way to do it?
throughout different methods in the class.
I did this by making the ifstream a private class member and opening the
file in the constructor,
however someone told me this was bad practice to have the stream as a
class attribute.
what is the best way to do it?