diff options
Diffstat (limited to 'doc/man/man3/tqfile.3qt')
-rw-r--r-- | doc/man/man3/tqfile.3qt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/man/man3/tqfile.3qt b/doc/man/man3/tqfile.3qt index 228c4a0b5..46d8aaf54 100644 --- a/doc/man/man3/tqfile.3qt +++ b/doc/man/man3/tqfile.3qt @@ -123,15 +123,15 @@ Inherits TQIODevice. .SH DESCRIPTION The QFile class is an I/O device that operates on files. .PP -QFile is an I/O device for reading and writing binary and text files. A QFile may be used by itself or more conveniently with a QDataStream or QTextStream. +QFile is an I/O device for reading and writing binary and text files. A QFile may be used by itself or more conveniently with a QDataStream or TQTextStream. .PP The file name is usually passed in the constructor but can be changed with setName(). You can check for a file's existence with exists() and remove a file with remove(). .PP -The file is opened with open(), closed with close() and flushed with flush(). Data is usually read and written using QDataStream or QTextStream, but you can read with readBlock() and readLine() and write with writeBlock(). QFile also supports getch(), ungetch() and putch(). +The file is opened with open(), closed with close() and flushed with flush(). Data is usually read and written using QDataStream or TQTextStream, but you can read with readBlock() and readLine() and write with writeBlock(). QFile 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(). .PP -Here is a code fragment that uses QTextStream to read a text file line by line. It prints each line with a line number. +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 .nf .br @@ -141,7 +141,7 @@ Here is a code fragment that uses QTextStream to read a text file line by line. .br if ( file.open( IO_ReadOnly ) ) { .br - QTextStream stream( &file ); + TQTextStream stream( &file ); .br TQString line; .br @@ -171,7 +171,7 @@ Writing text is just as easy. The following example shows how to write the data .br if ( file.open( IO_WriteOnly ) ) { .br - QTextStream stream( &file ); + TQTextStream stream( &file ); .br for ( TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) .br @@ -189,7 +189,7 @@ The QDir class manages directories and lists of file names. .PP Qt uses Unicode file names. If you want to do your own I/O on Unix systems you may want to use encodeName() (and decodeName()) to convert the file name into the local encoding. .PP -See also QDataStream, QTextStream, and Input/Output and Networking. +See also QDataStream, TQTextStream, and Input/Output and Networking. .SS "Member Type Documentation" .SH "QFile::DecoderFn" This is used by QFile::setDecodingFunction(). @@ -414,7 +414,7 @@ Reads bytes from the file into the char* \fIp\fR, until end-of-line or \fImaxlen .PP This function is only efficient for buffered files. Avoid readLine() for files that have been opened with the IO_Raw flag. .PP -See also readBlock() and QTextStream::readLine(). +See also readBlock() and TQTextStream::readLine(). .PP Reimplemented from TQIODevice. .SH "TQ_LONG QFile::readLine ( TQString & s, TQ_ULONG maxlen )" @@ -428,7 +428,7 @@ This function is only efficient for buffered files. Avoid using readLine() for f .PP Note that the string is read as plain Latin1 bytes, not Unicode. .PP -See also readBlock() and QTextStream::readLine(). +See also readBlock() and TQTextStream::readLine(). .SH "bool QFile::remove ()" Removes the file specified by the file name currently set. Returns TRUE if successful; otherwise returns FALSE. .PP |