From 3df557a87b39fc4c2ff14006506e6992d1620ab0 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 13 May 2006 01:52:31 +0000 Subject: david - initial NOT WORKING commit of SerializerText stuff... --- src/test/serializetext.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/test/serializetext.cpp (limited to 'src/test/serializetext.cpp') diff --git a/src/test/serializetext.cpp b/src/test/serializetext.cpp new file mode 100644 index 0000000..e7e92d2 --- /dev/null +++ b/src/test/serializetext.cpp @@ -0,0 +1,25 @@ +#include "serializertext.h" + +int main() +{ + SerializerText ar("hello.dat", false); + + ar << 4; + ar << 3.993; + ar << true; + + ar.close(); + + int one=0;float two=0.0;bool three=false; + + SerializerText ar2("hello.dat", true); + + ar2 >> one; + ar2 >> two; + ar2 >> three; + + printf("out: %d, %d, %s\n", one, two, three); + + return 0; +} + -- cgit v1.2.3