1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "ReadJob.h" ReadJob::ReadJob(Handle & as, Handle & ad) : s(as), d(ad) { } ReadJob::~ReadJob() { } int ReadJob::Do() { int r; String buff; while (!s.IsClosed()) { buff << s; buff >> d; if (buff == "") return TASK_DONE; } }