Click here to Skip to main content
15,913,570 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Save web page Pin
VVVimal20-Sep-10 0:08
VVVimal20-Sep-10 0:08 
GeneralRe: Save web page Pin
«_Superman_»20-Sep-10 0:12
professional«_Superman_»20-Sep-10 0:12 
GeneralRe: Save web page [modified] Pin
CPallini20-Sep-10 0:40
mveCPallini20-Sep-10 0:40 
GeneralRe: Save web page Pin
mesajflaviu22-Sep-10 22:55
mesajflaviu22-Sep-10 22:55 
GeneralRe: Save web page Pin
CPallini22-Sep-10 23:00
mveCPallini22-Sep-10 23:00 
QuestionCombining all files in single file Pin
learningvisualc19-Sep-10 22:31
learningvisualc19-Sep-10 22:31 
AnswerRe: Combining all files in single file Pin
«_Superman_»19-Sep-10 22:54
professional«_Superman_»19-Sep-10 22:54 
AnswerRe: Combining all files in single file PinPopular
Aescleal20-Sep-10 0:33
Aescleal20-Sep-10 0:33 
If you're using C++ you can combine files fairly easily. Open each one as an istream, open the destination file as an ofstream and then insert the streambufs of the input files to the destination file.

Something like:

std::ifstream a( "c:\\a.txt" );
std::ifstream b( "c:\\b.txt" );

std::ofstream c( "c:\\c.txt" );
c << a.rdbuf() << b.rdbuf();


will concatenate a.txt and b.txt and dump them in c.txt. It saves loads of tedious mucking about with C functions or Windows API functions.

Cheers,

Ash
QuestionSending email with attachment problem Pin
AnayKulkarni19-Sep-10 19:33
AnayKulkarni19-Sep-10 19:33 
QuestionRe: Sending email with attachment problem Pin
David Crow20-Sep-10 5:37
David Crow20-Sep-10 5:37 
QuestionHow to make the Memory Pool thread safe ? [modified][solved] Pin
yu-jian19-Sep-10 17:50
yu-jian19-Sep-10 17:50 
AnswerRe: How to make the Memory Pool thread safe ? [modified] Pin
Aescleal20-Sep-10 0:07
Aescleal20-Sep-10 0:07 
GeneralRe: How to make the Memory Pool thread safe ? Pin
Maximilien20-Sep-10 1:28
Maximilien20-Sep-10 1:28 
GeneralRe: How to make the Memory Pool thread safe ? Pin
Aescleal20-Sep-10 6:02
Aescleal20-Sep-10 6:02 
AnswerRe: How to make the Memory Pool thread safe ? [modified][solved] Pin
basementman23-Sep-10 4:37
basementman23-Sep-10 4:37 
AnswerRe: How to make the Memory Pool thread safe ? [modified][solved] Pin
Blake Miller28-Sep-10 11:24
Blake Miller28-Sep-10 11:24 
QuestionWhat is the different between Synchronization and block? Pin
yu-jian19-Sep-10 17:45
yu-jian19-Sep-10 17:45 
AnswerRe: What is the different between Synchronization and block? Pin
Moak20-Sep-10 0:36
Moak20-Sep-10 0:36 
GeneralRe: What is the different between Synchronization and block? Pin
yu-jian22-Sep-10 5:07
yu-jian22-Sep-10 5:07 
QuestionHow to change color in vs2008 feature pack? Pin
hanlei000000000919-Sep-10 15:40
hanlei000000000919-Sep-10 15:40 
QuestionAutoComplete with CListCtrl ? Pin
mesajflaviu19-Sep-10 8:22
mesajflaviu19-Sep-10 8:22 
AnswerRe: AutoComplete with CListCtrl ? Pin
«_Superman_»19-Sep-10 20:52
professional«_Superman_»19-Sep-10 20:52 
GeneralRe: AutoComplete with CListCtrl ? Pin
mesajflaviu20-Sep-10 7:13
mesajflaviu20-Sep-10 7:13 
QuestionGetting window name in different language. Pin
gateway2319-Sep-10 2:20
gateway2319-Sep-10 2:20 
AnswerRe: Getting window name in different language. Pin
AmbiguousName19-Sep-10 4:13
AmbiguousName19-Sep-10 4:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.