- Timestamp:
- Jun 9, 2009, 1:31:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp4/src/core/ConsoleCommandCompilation.cc
r1747 r3123 68 68 69 69 // Iterate through the file and put the lines into the CommandExecutor 70 char line[1024];71 70 while (file.good() && !file.eof()) 72 71 { 73 file.getline(line, 1024); 72 std::string line; 73 std::getline(file, line); 74 74 CommandExecutor::execute(line); 75 75 } … … 139 139 140 140 std::string output = ""; 141 char line[1024];142 141 while (file.good() && !file.eof()) 143 142 { 144 file.getline(line, 1024); 143 std::string line; 144 std::getline(file, line); 145 145 output += line; 146 146 output += "\n";
Note: See TracChangeset
for help on using the changeset viewer.