This function opens a file with read access.
- static Stream* ReadFile(const std::string& path)
- path: the path of the file to read.
If the file is able to be opened, a new stream is returned, otherwise NULL is returned.
using namespace Leadwerks;
int main(int argc, const char *argv)
std::string path = "MyFile.txt";
Stream* stream = FileSystem::WriteFile(path);
stream = FileSystem::ReadFile(path);