mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
feat(parser): get config file from arg
This commit is contained in:
@@ -38,12 +38,13 @@ namespace config
|
||||
else
|
||||
return (false);
|
||||
}
|
||||
Tokenizer::Tokenizer(std::string filename)
|
||||
Tokenizer::Tokenizer(char *filename)
|
||||
{
|
||||
file.open(filename.c_str(), std::ios::in);
|
||||
file.open(filename, std::ios::in);
|
||||
if (!file.good())
|
||||
{
|
||||
std::cerr << "file didn't open" << std::endl;
|
||||
throw std::logic_error("file didnt open");
|
||||
}
|
||||
}
|
||||
bool Tokenizer::firstToken()
|
||||
|
||||
Reference in New Issue
Block a user