~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty-proposed

« back to all changes in this revision

Viewing changes to yo/iostreams/src/files.yo.OFF

  • Committer: Package Import Robot
  • Author(s): Frank B. Brokken
  • Date: 2013-05-30 13:32:18 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20130530133218-k39mr5uredd093jr
Tags: 9.7.2-1
New upstream release, repairs several minor left-over flaws.
This release incorporates 9.7.0 and 9.7.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
In order to be able to create tt(fstream) objects, the header file
2
 
tt(fstream) must be included. Files to read are accessed through
3
 
tt(ifstream) objects, files to write are accessed through tt(ofstream) objects.
4
 
Files may be accessed for reading and writing as well. The general tt(fstream)
5
 
object is used for that purpose.
6
 
 
7
 
String stream objects can be used to read or write objects to streams in
8
 
memory, allowing the use of, e.g., the insertion and extraction operators on
9
 
these objects. To use the string stream objects tt(istrstream, ostrstream) or
10
 
tt(strstream) the header file tt(strstream) must be included. Note that a
11
 
tt(strstream) object is not a tt(string) object. A tt(strstream) object should
12
 
be approached like a tt(fstream) object, not as a tt(char *) object having
13
 
special characteristics.