Changeset 932
- Timestamp:
- Aug 2, 2011, 3:03:13 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/src/snippets/code/src_corelib_io_qfile.cpp
r846 r932 74 74 CONFIG += console 75 75 //! [4] 76 77 78 79 80 81 82 83 84 85 86 87 88 89 -
trunk/src/corelib/io/qfile.cpp
r846 r932 1041 1041 \sa close(), {qmake Variable Reference#CONFIG}{qmake Variable Reference} 1042 1042 1043 \bold{Note for the Windows Platform}1043 \bold{Note for the Windows } 1044 1044 1045 1045 \a fh must be opened in binary mode (i.e., the mode string must contain 1046 1046 'b', as in "rb" or "wb") when accessing files and other random-access 1047 1047 devices. Qt will translate the end-of-line characters if you pass 1048 QIODevice::Text to \a mode. Sequential devices, such as stdin and stdout, 1049 are unaffected by this limitation. 1048 QIODevice::Text to \a mode. Predefined console devices, such as stdin and 1049 stdout, should be put to binary mode using \c _setmode() before passing them 1050 to this method: 1051 1052 \snippet doc/src/snippets/code/src_corelib_io_qfile.cpp 5 1050 1053 1051 1054 You need to enable support for console applications in order to use the … … 1114 1117 1115 1118 \sa close() 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1116 1129 */ 1117 1130 bool QFile::open(int fd, OpenMode mode)
Note:
See TracChangeset
for help on using the changeset viewer.