mirror of
https://github.com/RGBCube/serenity
synced 2025-10-13 21:42:18 +00:00
17 lines
272 B
C++
17 lines
272 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <stdio.h>
|
|
|
|
class FileReader {
|
|
public:
|
|
explicit FileReader(const std::string& path);
|
|
~FileReader();
|
|
|
|
bool can_read() const;
|
|
std::string read_line();
|
|
|
|
private:
|
|
std::string m_path;
|
|
FILE* m_file { nullptr };
|
|
};
|