From 599f9a5b2118347011bdbc906acad007ab5cdbcd Mon Sep 17 00:00:00 2001 From: Alexey <AlexeyAB@users.noreply.github.com> Date: Thu, 14 Sep 2017 19:30:04 +0000 Subject: [PATCH] Update Readme.md --- src/yolo_console_dll.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/yolo_console_dll.cpp b/src/yolo_console_dll.cpp index 7618a09..ffa5c45 100644 --- a/src/yolo_console_dll.cpp +++ b/src/yolo_console_dll.cpp @@ -70,7 +70,7 @@ std::ifstream file(filename); std::vector<std::string> file_lines; if (!file.is_open()) return file_lines; - for(std::string line; file >> line;) file_lines.push_back(line); + for(std::string line; getline(file, line);) file_lines.push_back(line); std::cout << "object names loaded \n"; return file_lines; } -- Gitblit v1.10.0