std::string filepath = "levels/" + filename;
int last_slash = filepath.find_last_of('/');
FileSystem::fcreatedir(filepath.substr(0,last_slash).c_str());
std::string filepath = "levels/" + filename;
int last_slash = filepath.find_last_of('/');
FileSystem::fcreatedir(filepath.substr(0,last_slash).c_str());
ofstream file(filepath.c_str(), ios::out);
lisp::Writer* writer = new lisp::Writer(file);
ofstream file(filepath.c_str(), ios::out);
lisp::Writer* writer = new lisp::Writer(file);