aboutsummaryrefslogtreecommitdiff
path: root/src/test/serializetext.cpp
blob: e7e92d29ccf1cdf37f9d805d485c6a40e9d221b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
}