Three lots of changes:
1) Changes post code review by Jason 2) Fixing bug in end of line processing on Windows with cr-lf 3) Adding command-line options to chai
This commit is contained in:
@@ -492,7 +492,7 @@ namespace chaiscript
|
||||
* Helper function for loading a file
|
||||
*/
|
||||
std::string load_file(const std::string &t_filename) {
|
||||
std::ifstream infile(t_filename.c_str(), std::ios::in | std::ios::ate);
|
||||
std::ifstream infile(t_filename.c_str(), std::ios::in | std::ios::ate | std::ios::binary );
|
||||
|
||||
if (!infile.is_open()) {
|
||||
throw File_Not_Found_Error(t_filename);
|
||||
|
||||
Reference in New Issue
Block a user