Last change
on this file since 922 was 922, checked in by Dmitry A. Kuminov, 14 years ago |
tests: Added process-sync2 and child2 test cases.
|
-
Property svn:eol-style
set to
native
|
File size:
472 bytes
|
Line | |
---|
1 | #include <QFile>
|
---|
2 | #include <QDebug>
|
---|
3 |
|
---|
4 | #if defined(Q_OS_OS2) && 0
|
---|
5 | #include <fcntl.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | int main (/*int argc, char *argv []*/)
|
---|
9 | {
|
---|
10 | #if defined(Q_OS_OS2) && 0
|
---|
11 | _fsetmode(stdin, "b");
|
---|
12 | _fsetmode(stdout, "b");
|
---|
13 | _fsetmode(stderr, "b");
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | QFile in;
|
---|
17 | in.open (stdin, QIODevice::ReadOnly);
|
---|
18 |
|
---|
19 | QFile out;
|
---|
20 | out.open (stdout, QIODevice::WriteOnly);
|
---|
21 |
|
---|
22 | while (!in.atEnd())
|
---|
23 | {
|
---|
24 | QByteArray line = in.readLine();
|
---|
25 | out.write (line);
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.