Changeset 3198 for code/trunk/src/core/ConsoleCommandCompilation.cc
- Timestamp:
 - Jun 20, 2009, 4:27:38 PM (16 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          code/trunk/src/core/ConsoleCommandCompilation.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/trunk/src/core/ConsoleCommandCompilation.cc
r3196 r3198 73 73 74 74 // Iterate through the file and put the lines into the CommandExecutor 75 char line[1024];76 75 while (file.good() && !file.eof()) 77 76 { 78 file.getline(line, 1024); 77 std::string line; 78 std::getline(file, line); 79 79 CommandExecutor::execute(line); 80 80 } … … 144 144 145 145 std::string output = ""; 146 char line[1024];147 146 while (file.good() && !file.eof()) 148 147 { 149 file.getline(line, 1024); 148 std::string line; 149 std::getline(file, line); 150 150 output += line; 151 151 output += "\n";  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






