home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH11 / A11202.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-22  |  332.5 KB  |  1 channel  |  11,025 sample rate  |  31 seconds
Transcription: The simplest way to open a file is to create an object of the IFStream, OFStream, or FStream classes and establish the file as its ultimate producer or consumer. These code samples show two equivalent methods for doing this. In the code on the left, the stream objects are created by constructors. Then the files are opened and associated with the objects by calls to open. In the code on the right, the constructors create the stream objects and open the files.