mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
17 lines
403 B
C++
17 lines
403 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
String s = LoadFile("/proc/meminfo");
|
|
Cout() << s;
|
|
ASSERT(s.GetCount() > 0);
|
|
ASSERT(LoadFile("/proc/this_file_does_not_exist").IsVoid());
|
|
String path = GetHomeDirFile("empty_file");
|
|
SaveFile(path, String());
|
|
s = LoadFile(path);
|
|
DDUMP(s.GetCount());
|
|
ASSERT(!s.IsVoid() && s.GetCount() == 0);
|
|
DeleteFile(path);
|
|
}
|