/[projects]/misc/mysql_splitter/splitter.cpp
ViewVC logotype

Diff of /misc/mysql_splitter/splitter.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1461 by torben, Thu May 12 15:32:44 2011 UTC revision 1463 by torben, Thu May 12 16:33:18 2011 UTC
# Line 135  int main(int argc, char** argv) { Line 135  int main(int argc, char** argv) {
135                          bool did_exist = boost::filesystem::exists(filename);                          bool did_exist = boost::filesystem::exists(filename);
136    
137                          //out.open( filename.c_str(), ios::app );                          //out.open( filename.c_str(), ios::app );
138                          out  = fopen(filename.c_str(), "a");                          out  = fopen64(filename.c_str(), "a");
139    
140    
141    
# Line 154  int main(int argc, char** argv) { Line 154  int main(int argc, char** argv) {
154    
155                  if (out != NULL ) {                  if (out != NULL ) {
156                          fputs(linebuf, out);                          fputs(linebuf, out);
157                          fputs("\n", out);                          //fputs("\n", out);
158                          //out << linebuf << endl;                          //out << linebuf << endl;
159                  } else {                  } else {
160                          header << linebuf << endl; //collect preamble for later use                          header << linebuf; //collect preamble for later use
161                  }                  }
162    
163          }          }

Legend:
Removed from v.1461  
changed lines
  Added in v.1463

  ViewVC Help
Powered by ViewVC 1.1.20