diff options
Diffstat (limited to 'doc/html/ntqfile.html')
-rw-r--r-- | doc/html/ntqfile.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/ntqfile.html b/doc/html/ntqfile.html index 1c51e2bba..10393da13 100644 --- a/doc/html/ntqfile.html +++ b/doc/html/ntqfile.html @@ -105,15 +105,15 @@ 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 line by line. It prints each line with a line number. <pre> - <a href="ntqstringlist.html">TQStringList</a> lines; + <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( &file ); - <a href="ntqstring.html">TQString</a> line; + <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' - printf( "%3d: %s\n", i++, line.<a href="ntqstring.html#latin1">latin1</a>() ); + printf( "%3d: %s\n", i++, line.<a href="tqstring.html#latin1">latin1</a>() ); lines += line; } file.<a href="#close">close</a>(); @@ -156,7 +156,7 @@ convert the file name into the local encoding. </h3> Constructs a TQFile with no name. -<h3 class=fn><a name="TQFile-2"></a>TQFile::TQFile ( const <a href="ntqstring.html">TQString</a> & name ) +<h3 class=fn><a name="TQFile-2"></a>TQFile::TQFile ( const <a href="tqstring.html">TQString</a> & name ) </h3> Constructs a TQFile with a file name <em>name</em>. <p> <p>See also <a href="#setName">setName</a>(). @@ -188,13 +188,13 @@ reports <a href="ntqiodevice.html#status">IO_UnspecifiedError</a> after <a href= <p>Examples: <a href="tutorial2-07.html#x2590">chart/chartform_files.cpp</a>, <a href="distributor-example.html#x2656">distributor/distributor.ui.h</a>, <a href="helpviewer-example.html#x987">helpviewer/helpwindow.cpp</a>, <a href="mdi-example.html#x2023">mdi/application.cpp</a>, <a href="qdir-example.html#x1814">qdir/qdir.cpp</a>, <a href="qwerty-example.html#x362">qwerty/qwerty.cpp</a>, and <a href="outliner-example.html#x1914">xml/outliner/outlinetree.cpp</a>. <p>Reimplemented from <a href="ntqiodevice.html#close">TQIODevice</a>. -<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="decodeName"></a>TQFile::decodeName ( const <a href="ntqcstring.html">TQCString</a> & localFileName )<tt> [static]</tt> +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="decodeName"></a>TQFile::decodeName ( const <a href="ntqcstring.html">TQCString</a> & localFileName )<tt> [static]</tt> </h3> This does the reverse of <a href="#encodeName">TQFile::encodeName</a>() using <em>localFileName</em>. <p> <p>See also <a href="#setDecodingFunction">setDecodingFunction</a>(). <p>Example: <a href="distributor-example.html#x2657">distributor/distributor.ui.h</a>. -<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="encodeName"></a>TQFile::encodeName ( const <a href="ntqstring.html">TQString</a> & fileName )<tt> [static]</tt> +<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="encodeName"></a>TQFile::encodeName ( const <a href="tqstring.html">TQString</a> & fileName )<tt> [static]</tt> </h3> When you use TQFile, <a href="ntqfileinfo.html">TQFileInfo</a>, and <a href="ntqdir.html">TQDir</a> to access the file system with TQt, you can use Unicode file names. On Unix, these file names @@ -214,7 +214,7 @@ would probably then be unrecognizable when seen by other programs. <p> <p>See also <a href="#decodeName">decodeName</a>(). <p>Example: <a href="distributor-example.html#x2658">distributor/distributor.ui.h</a>. -<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="errorString"></a>TQFile::errorString () const +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="errorString"></a>TQFile::errorString () const </h3> Returns a human-readable description of the reason of an error that occurred on the device. The error described by the string corresponds to changes of @@ -237,7 +237,7 @@ should translate it first, for example: <p> <p>See also <a href="ntqiodevice.html#status">TQIODevice::status</a>(), <a href="ntqiodevice.html#resetStatus">TQIODevice::resetStatus</a>(), and <a href="#setErrorString">setErrorString</a>(). -<h3 class=fn>bool <a name="exists"></a>TQFile::exists ( const <a href="ntqstring.html">TQString</a> & fileName )<tt> [static]</tt> +<h3 class=fn>bool <a name="exists"></a>TQFile::exists ( const <a href="tqstring.html">TQString</a> & fileName )<tt> [static]</tt> </h3> Returns TRUE if the file given by <em>fileName</em> exists; otherwise returns FALSE. @@ -273,7 +273,7 @@ can be used with <a href="ntqsocketnotifier.html">TQSocketNotifier</a> as well. <p> If the file is not open or there is an error, <a href="#handle">handle</a>() returns -1. <p> <p>See also <a href="ntqsocketnotifier.html">TQSocketNotifier</a>. -<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="name"></a>TQFile::name () const +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="name"></a>TQFile::name () const </h3> <p> Returns the name set by <a href="#setName">setName</a>(). @@ -404,7 +404,7 @@ flag. <p> <p>See also <a href="ntqiodevice.html#readBlock">readBlock</a>() and <a href="ntqtextstream.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="ntqstring.html">TQString</a> & s, TQ_ULONG maxlen ) +<h3 class=fn>TQ_LONG <a name="readLine-2"></a>TQFile::readLine ( <a href="tqstring.html">TQString</a> & s, TQ_ULONG maxlen ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads a line of text. @@ -424,7 +424,7 @@ Removes the file specified by the file name currently set. Returns TRUE if successful; otherwise returns FALSE. <p> The file is closed before it is removed. -<h3 class=fn>bool <a name="remove-2"></a>TQFile::remove ( const <a href="ntqstring.html">TQString</a> & fileName )<tt> [static]</tt> +<h3 class=fn>bool <a name="remove-2"></a>TQFile::remove ( const <a href="tqstring.html">TQString</a> & fileName )<tt> [static]</tt> </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Removes the file <em>fileName</em>. @@ -446,14 +446,14 @@ default uses the locale-specific 8-bit encoding. default encodes in the locale-specific 8-bit encoding. <p> <p>See also <a href="#encodeName">encodeName</a>(). -<h3 class=fn>void <a name="setErrorString"></a>TQFile::setErrorString ( const <a href="ntqstring.html">TQString</a> & str )<tt> [protected]</tt> +<h3 class=fn>void <a name="setErrorString"></a>TQFile::setErrorString ( const <a href="tqstring.html">TQString</a> & str )<tt> [protected]</tt> </h3><p><b>Warning:</b> This function is <i>not</i> <a href="threads.html#reentrant">reentrant</a>.</p> <p> Sets the error string returned by the <a href="#errorString">errorString</a>() function to <em>str</em>. <p> <p>See also <a href="#errorString">errorString</a>() and <a href="ntqiodevice.html#status">TQIODevice::status</a>(). -<h3 class=fn>void <a name="setName"></a>TQFile::setName ( const <a href="ntqstring.html">TQString</a> & name ) +<h3 class=fn>void <a name="setName"></a>TQFile::setName ( const <a href="tqstring.html">TQString</a> & name ) </h3> Sets the name of the file to <em>name</em>. The name can have no path, a relative path or an absolute absolute path. |