Serving the Quantitative Finance Community

 
User avatar
kimosabe
Posts: 4
Joined: November 25th, 2003, 12:24 pm

concatenate files in C++

September 20th, 2011, 12:44 pm

QuoteOriginally posted by: HansiRealistically SSIS would only be beneficial if this is going to end up in a MSSQL db.You are usually spot on Hansi but this I do not capish. You can use SSIS to write output to just about any database, Excel, or even csv files.
 
User avatar
Hansi
Posts: 41
Joined: January 25th, 2010, 11:47 am

concatenate files in C++

September 20th, 2011, 12:51 pm

Put "realistically" (not sure if it's the right phrase to use here) because there are generally faster methods to use if you are using other databases. SSIS to MySQL was dead slow when I tried using it last time but that was a few years ago.
 
User avatar
kimosabe
Posts: 4
Joined: November 25th, 2003, 12:24 pm

concatenate files in C++

September 20th, 2011, 1:26 pm

QuoteOriginally posted by: HansiPut "realistically" (not sure if it's the right phrase to use here) because there are generally faster methods to use if you are using other databases. SSIS to MySQL was dead slow when I tried using it last time but that was a few years ago.Yeah, I've seen that too. Maybe M$ intentionally made their driver slow for that, although I have to say I'm not very impressed by MySQL in general. If you want a free database, PostgreSQL is a far better product, IMHO.
 
User avatar
nosbor
Posts: 0
Joined: December 10th, 2006, 12:54 pm

concatenate files in C++

September 20th, 2011, 1:55 pm

QuoteOriginally posted by: edouardthis is a C++ exercise. i would appreciate hints.let's say i have annual OLHC files for several underyings. the files are the locate in the same directory.cac402008.txt,dji2008.txt,goog2008.txtcac402007.txt,dji2007.txt,goog2007.txt....i want to concatenate the files to get long term time series of each underlyingfor file/path manipulations, some seem to recommend boost.filesystem. is that a good idea ?
 
User avatar
kimosabe
Posts: 4
Joined: November 25th, 2003, 12:24 pm

concatenate files in C++

September 20th, 2011, 2:05 pm

Well I'll be the son of a monkey's uncle. Somebody on Wilmott that answers the actual question someone asks. You are my new hero, nosbor.
 
User avatar
daveangel
Posts: 5
Joined: October 20th, 2003, 4:05 pm

concatenate files in C++

September 20th, 2011, 3:37 pm

QuoteOriginally posted by: kimosabeWell I'll be the son of a monkey's uncle. Somebody on Wilmott that answers the actual question someone asks. You are my new hero, nosbor.you should spend more time outside the software forum
knowledge comes, wisdom lingers
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

concatenate files in C++

September 21st, 2011, 6:15 am

QuoteOriginally posted by: daveangelQuoteOriginally posted by: kimosabeWell I'll be the son of a monkey's uncle. Somebody on Wilmott that answers the actual question someone asks. You are my new hero, nosbor.you should spend more time outside the software forumAll work and no play. Here is the C version.
 
User avatar
daveangel
Posts: 5
Joined: October 20th, 2003, 4:05 pm

concatenate files in C++

September 21st, 2011, 6:41 am

QuoteOriginally posted by: CuchulainnQuoteOriginally posted by: daveangelQuoteOriginally posted by: kimosabeWell I'll be the son of a monkey's uncle. Somebody on Wilmott that answers the actual question someone asks. You are my new hero, nosbor.you should spend more time outside the software forumAll work and no play. Here is the C version.perhaps you should make it "static void concatenate()"
knowledge comes, wisdom lingers
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

concatenate files in C++

September 21st, 2011, 7:11 am

Quoteperhaps you should make it "static void concatenate()"Good point. This example shows why C++ is a better C.
Last edited by Cuchulainn on September 20th, 2011, 10:00 pm, edited 1 time in total.