X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ff14117cbfd017d73508f51b27495ee7e9189f3..7c4eef7a75398aab1285e3ad2971c59ea3130293:/docs/latex/wx/txtstrm.tex

diff --git a/docs/latex/wx/txtstrm.tex b/docs/latex/wx/txtstrm.tex
index 23858822a1..559209c182 100644
--- a/docs/latex/wx/txtstrm.tex
+++ b/docs/latex/wx/txtstrm.tex
@@ -91,14 +91,14 @@ $\backslash$n or $\backslash$r$\backslash$n or $\backslash$r.
 This class provides functions that write text datas using an output stream.
 So, you can write \it{text} floats, integers.
 
-For example:
+You can also simulate the C++ cout class:
 \begin{verbatim}
-  wxFileOutputStream output( "mytext.txt" );
-  wxTextOutputStream text( output );
+  wxFFileOutputStream output( stderr );
+  wxTextOutputStream cout( output );
 
-  output << "This is a text line\n";
-  output << 1234;
-  output << 1.23456;
+  cout << "This is a text line" << endl;
+  cout << 1234;
+  cout << 1.23456;
 \end{verbatim}
 
 The wxTextOutputStream writes text files (or streams) on DOS, Macintosh
@@ -106,7 +106,7 @@ and Unix in their native formats (concerning the line ending).
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
-\membersection{wxTextOutputStream::wxTextOutputStream}\label{wxdataoutputstreamconstr}
+\membersection{wxTextOutputStream::wxTextOutputStream}\label{wxtextoutputstreamconstr}
 
 \func{}{wxTextOutputStream}{\param{wxOutputStream\&}{ stream}}
 
@@ -153,3 +153,4 @@ Writes the double {\it f} to the stream using the IEEE format.
 
 Writes {\it string} as a line. Depending on the operating system, it adds
 $\backslash$n or $\backslash$r$\backslash$n.
+
