#include "io.hh"
int main()
{
{
Writer& w = *(new File_Writer("t-io.el"));
int i = 42;
bool b = true;
double d = 10095.813526;
d = d * d;
string ident = "identilly";
string s = "Hello, World!";
w << i << endl;
w << b << endl;
w << d << endl;
w << ident << endl;
w << s.quoted() << endl;
delete &w;
}
{
int i = 69;
bool b = false;
double d;
string ident = "harry";
string s = "Have a nice day...\n";
Reader& r = *(new Reader("t-io.el"));
r >> i;
PRINT(i);
r >> b;
PRINT(b);
r >> d;
PRINT(d);
r >> ident;
PRINT(ident);
s = r.gulp_quoted_string();
PRINT(s.quoted());
}
}