summaryrefslogtreecommitdiffstats
path: root/doc/html/ntqfile.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/ntqfile.html')
-rw-r--r--doc/html/ntqfile.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/ntqfile.html b/doc/html/ntqfile.html
index 10393da1..94f45369 100644
--- a/doc/html/ntqfile.html
+++ b/doc/html/ntqfile.html
@@ -89,7 +89,7 @@ The TQFile class is an I/O device that operates on files.
<p> TQFile is an I/O device for reading and writing binary and text
files. A TQFile may be used by itself or more conveniently with a
-<a href="ntqdatastream.html">TQDataStream</a> or <a href="ntqtextstream.html">TQTextStream</a>.
+<a href="ntqdatastream.html">TQDataStream</a> or <a href="tqtextstream.html">TQTextStream</a>.
<p> The file name is usually passed in the constructor but can be
changed with <a href="#setName">setName</a>(). You can check for a file's existence with
<a href="#exists">exists</a>() and remove a file with <a href="#remove">remove</a>().
@@ -102,17 +102,17 @@ and write with <a href="ntqiodevice.html#writeBlock">writeBlock</a>(). TQFile al
current file position or move to a new file position using the
<a href="ntqiodevice.html#at">at</a>() functions. If you've reached the end of the file, <a href="#atEnd">atEnd</a>()
returns TRUE. The file handle is returned by <a href="#handle">handle</a>().
-<p> Here is a code fragment that uses <a href="ntqtextstream.html">TQTextStream</a> to read a text file
+<p> Here is a code fragment that uses <a href="tqtextstream.html">TQTextStream</a> to read a text file
line by line. It prints each line with a line number.
<pre>
<a href="tqstringlist.html">TQStringList</a> lines;
TQFile file( "file.txt" );
if ( file.<a href="#open">open</a>( IO_ReadOnly ) ) {
- <a href="ntqtextstream.html">TQTextStream</a> stream( &amp;file );
+ <a href="tqtextstream.html">TQTextStream</a> stream( &amp;file );
<a href="tqstring.html">TQString</a> line;
int i = 1;
- while ( !stream.<a href="ntqtextstream.html#atEnd">atEnd</a>() ) {
- line = stream.<a href="ntqtextstream.html#readLine">readLine</a>(); // line of text excluding '\n'
+ while ( !stream.<a href="tqtextstream.html#atEnd">atEnd</a>() ) {
+ line = stream.<a href="tqtextstream.html#readLine">readLine</a>(); // line of text excluding '\n'
printf( "%3d: %s\n", i++, line.<a href="tqstring.html#latin1">latin1</a>() );
lines += line;
}
@@ -126,7 +126,7 @@ example:
<pre>
TQFile file( "file.txt" );
if ( file.<a href="#open">open</a>( IO_WriteOnly ) ) {
- <a href="ntqtextstream.html">TQTextStream</a> stream( &amp;file );
+ <a href="tqtextstream.html">TQTextStream</a> stream( &amp;file );
for ( TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it )
stream &lt;&lt; *it &lt;&lt; "\n";
file.<a href="#close">close</a>();
@@ -140,7 +140,7 @@ as access permissions, file dates and file types.
systems you may want to use <a href="#encodeName">encodeName</a>() (and <a href="#decodeName">decodeName</a>()) to
convert the file name into the local encoding.
<p>
-<p> <p>See also <a href="ntqdatastream.html">TQDataStream</a>, <a href="ntqtextstream.html">TQTextStream</a>, and <a href="io.html">Input/Output and Networking</a>.
+<p> <p>See also <a href="ntqdatastream.html">TQDataStream</a>, <a href="tqtextstream.html">TQTextStream</a>, and <a href="io.html">Input/Output and Networking</a>.
<hr><h2>Member Type Documentation</h2>
<h3 class=fn><a name="DecoderFn"></a>TQFile::DecoderFn</h3>
@@ -401,7 +401,7 @@ terminating newline is not stripped.
<p> This function is only efficient for buffered files. Avoid
<a href="#readLine">readLine</a>() for files that have been opened with the <a href="ntqfile.html#open">IO_Raw</a>
flag.
-<p> <p>See also <a href="ntqiodevice.html#readBlock">readBlock</a>() and <a href="ntqtextstream.html#readLine">TQTextStream::readLine</a>().
+<p> <p>See also <a href="ntqiodevice.html#readBlock">readBlock</a>() and <a href="tqtextstream.html#readLine">TQTextStream::readLine</a>().
<p>Reimplemented from <a href="ntqiodevice.html#readLine">TQIODevice</a>.
<h3 class=fn>TQ_LONG <a name="readLine-2"></a>TQFile::readLine ( <a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;s, TQ_ULONG&nbsp;maxlen )
@@ -416,7 +416,7 @@ file. Any terminating newline is not stripped.
<a href="#readLine">readLine</a>() for files that have been opened with the <a href="ntqfile.html#open">IO_Raw</a>
flag.
<p> Note that the string is read as plain Latin1 bytes, not Unicode.
-<p> <p>See also <a href="ntqiodevice.html#readBlock">readBlock</a>() and <a href="ntqtextstream.html#readLine">TQTextStream::readLine</a>().
+<p> <p>See also <a href="ntqiodevice.html#readBlock">readBlock</a>() and <a href="tqtextstream.html#readLine">TQTextStream::readLine</a>().
<h3 class=fn>bool <a name="remove"></a>TQFile::remove ()
</h3>