opening fileds using constructor
We Know that a constructor is used to itialize an object while it is being created.Here a filename is used to intialize the file stram object.
This involves the following steps
1.Create a file stream object to manage the stream using the appropriate class.That is the class ofstream to create ofstream object and the class ifstream to create an input stream.
Initialize the file object with the desired file name.
Monday, August 10, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment