repo.or.cz
/
prop.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial
[prop.git]
/
lib-src
/
persist
/
qa.cc
blob
072d73b11d1b7b15f55f0ca14b38ef88889a512c
1
#include <AD/persist/pstream.h>
2
#include <fstream.h>
3
#include <strstream.h>
4
5
main
()
6
{ {
ofstream
O
(
"testing"
);
7
Postream
PO
(
O
);
8
PO
<<
"this is a test
\n
"
;
9
}
10
ifstream
I
(
"testing"
);
11
Pistream
PI
(
I
);
12
char
buf
[
128
];
13
PI
.
read
(
buf
,
sizeof
(
buf
));
14
cout
<<
"this = "
<<
buf
;
15
return
0
;
16
}