mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
25 lines
375 B
C++
25 lines
375 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
void DumpFile(One<Stream>& s)
|
|
{
|
|
LOG("=========");
|
|
int ii = 0;
|
|
while(!s->IsEof())
|
|
LOG(++ii << ": " << s->GetLine());
|
|
}
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
String fn = GetDataFile("One.cpp");
|
|
{
|
|
One<Stream> s;
|
|
s.Create<FileIn>(fn);
|
|
DumpFile(s);
|
|
}
|
|
{
|
|
One<Stream> s = MakeOne<FileIn>(fn);
|
|
DumpFile(s);
|
|
}
|
|
}
|