Many additions and changes.

This commit is contained in:
barant committed 2019-09-13 10:29:36 -07:00
1 parent 50f6e972de
commit 08169b1c3d
30 files changed
+451 -63

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
#ifndef __File_h__
#define __File_h__
#include "includes"
///
/// 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();
void setBufferSize(size_t size);
void read();
void write(std::string data);
char *buffer;
size_t size;
std::string fileName;
private:
int fd;
};
}
#endif