summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqfile.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqfile.3qt')
-rw-r--r--doc/man/man3/tqfile.3qt18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/man/man3/tqfile.3qt b/doc/man/man3/tqfile.3qt
index c18c09573..5e3c8a710 100644
--- a/doc/man/man3/tqfile.3qt
+++ b/doc/man/man3/tqfile.3qt
@@ -129,7 +129,7 @@ The file name is usually passed in the constructor but can be changed with setNa
.PP
The file is opened with open(), closed with close() and flushed with flush(). Data is usually read and written using TQDataStream or TQTextStream, but you can read with readBlock() and readLine() and write with writeBlock(). TQFile also supports getch(), ungetch() and putch().
.PP
-The size of the file is returned by size(). You can get the current file position or move to a new file position using the at() functions. If you've reached the end of the file, atEnd() returns TRUE. The file handle is returned by handle().
+The size of the file is returned by size(). You can get the current file position or move to a new file position using the at() functions. If you've reached the end of the file, atEnd() returns true. The file handle is returned by handle().
.PP
Here is a code fragment that uses TQTextStream to read a text file line by line. It prints each line with a line number.
.PP
@@ -205,7 +205,7 @@ See also setName().
.SH "TQFile::~TQFile ()"
Destroys a TQFile. Calls close().
.SH "bool TQFile::atEnd () const\fC [virtual]\fR"
-Returns TRUE if the end of file has been reached; otherwise returns FALSE. If TQFile has not been open()'d, then the behavior is undefined.
+Returns true if the end of file has been reached; otherwise returns false. If TQFile has not been open()'d, then the behavior is undefined.
.PP
See also size().
.PP
@@ -270,14 +270,14 @@ The returned strings are not translated with the TQObject::tr() or TQApplication
.PP
See also TQIODevice::status(), TQIODevice::resetStatus(), and setErrorString().
.SH "bool TQFile::exists ( const TQString & fileName )\fC [static]\fR"
-Returns TRUE if the file given by \fIfileName\fR exists; otherwise returns FALSE.
+Returns true if the file given by \fIfileName\fR exists; otherwise returns false.
.PP
Examples:
.)l chart/chartform.cpp, dirview/dirview.cpp, and helpviewer/helpwindow.cpp.
.SH "bool TQFile::exists () const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Returns TRUE if this file exists; otherwise returns FALSE.
+Returns true if this file exists; otherwise returns false.
.PP
See also name().
.SH "void TQFile::flush ()\fC [virtual]\fR"
@@ -307,7 +307,7 @@ Returns the name set by setName().
.PP
See also setName() and TQFileInfo::fileName().
.SH "bool TQFile::open ( int m )\fC [virtual]\fR"
-Opens the file specified by the file name currently set, using the mode \fIm\fR. Returns TRUE if successful, otherwise FALSE.
+Opens the file specified by the file name currently set, using the mode \fIm\fR. Returns true if successful, otherwise false.
.PP
.PP
@@ -355,7 +355,7 @@ Reimplemented from TQIODevice.
.SH "bool TQFile::open ( int m, FILE * f )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Opens a file in the mode \fIm\fR using an existing file handle \fIf\fR. Returns TRUE if successful, otherwise FALSE.
+Opens a file in the mode \fIm\fR using an existing file handle \fIf\fR. Returns true if successful, otherwise false.
.PP
Example:
.PP
@@ -388,7 +388,7 @@ See also close().
.SH "bool TQFile::open ( int m, int f )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Opens a file in the mode \fIm\fR using an existing file descriptor \fIf\fR. Returns TRUE if successful, otherwise FALSE.
+Opens a file in the mode \fIm\fR using an existing file descriptor \fIf\fR. Returns true if successful, otherwise false.
.PP
When a TQFile is opened using this function, close() does not actually close the file.
.PP
@@ -430,13 +430,13 @@ Note that the string is read as plain Latin1 bytes, not Unicode.
.PP
See also readBlock() and TQTextStream::readLine().
.SH "bool TQFile::remove ()"
-Removes the file specified by the file name currently set. Returns TRUE if successful; otherwise returns FALSE.
+Removes the file specified by the file name currently set. Returns true if successful; otherwise returns false.
.PP
The file is closed before it is removed.
.SH "bool TQFile::remove ( const TQString & fileName )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Removes the file \fIfileName\fR. Returns TRUE if successful, otherwise FALSE.
+Removes the file \fIfileName\fR. Returns true if successful, otherwise false.
.SH "void TQFile::setDecodingFunction ( DecoderFn f )\fC [static]\fR"
\fBWarning:\fR This function is \fInot\fR reentrant.</p>
.PP