Updated and working.
This commit is contained in:
1 parent
d4148b0ab4
commit
a37c4e6829
30 files changed
+422
-226
No files matched your search
@@ -5,32 +5,32 @@
|
||||
|
||||
///
|
||||
/// File
|
||||
///
|
||||
///
|
||||
/// File abstraction class for accessing local file system files.
|
||||
///
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
|
||||
class File {
|
||||
|
||||
|
||||
public:
|
||||
File(std::string fileName, int mode = O_RDONLY, int authority = 0664);
|
||||
~File();
|
||||
~File();
|
||||
void setBufferSize(size_t size);
|
||||
void read();
|
||||
void write(std::string data);
|
||||
std::string asString();
|
||||
|
||||
|
||||
char *buffer;
|
||||
size_t size;
|
||||
|
||||
|
||||
std::string fileName;
|
||||
|
||||
|
||||
private:
|
||||
int fd;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user