33 File(
unsigned long id, std::string
const& fileName);
35 unsigned long getId()
const;
36 std::string
getContent(
const unsigned long int maximumBytes = 1 << 20)
const;
44 std::string
getStringFromFile(
const char* filename,
const unsigned long int maximumBytes = 1 << 20);
45 std::string
getStringFromFile(std::string
const& filename,
const unsigned long int maximumBytes = 1 << 20);
unsigned long id
ID of the file.
std::string getStringFromFile(const char *filename, const unsigned long int maximumBytes)
Reads the content of a file and return it as a string.
std::string getContent(const unsigned long int maximumBytes=1<< 20) const
Get the content of the file limited by maximumBytes.
std::string fileName
Path of the file.
Class to handle file related operations.
unsigned long getId() const
fo namespace holds the FOSSology library functions.
const std::string & getFileName() const
File(unsigned long id, const char *fileName)