mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
LibCore: Move Stream-based file into the Core
namespace
This commit is contained in:
parent
a96339b72b
commit
606a3982f3
218 changed files with 748 additions and 643 deletions
|
@ -177,8 +177,8 @@ void WordGame::read_words()
|
|||
m_words.clear();
|
||||
|
||||
auto try_load_words = [&]() -> ErrorOr<void> {
|
||||
auto response = TRY(Core::Stream::File::open("/res/words.txt"sv, Core::Stream::OpenMode::Read));
|
||||
auto words_file = TRY(Core::Stream::BufferedFile::create(move(response)));
|
||||
auto response = TRY(Core::File::open("/res/words.txt"sv, Core::File::OpenMode::Read));
|
||||
auto words_file = TRY(Core::BufferedFile::create(move(response)));
|
||||
Array<u8, 128> buffer;
|
||||
|
||||
while (!words_file->is_eof()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue