Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSome help on interpreting this makefile for linux... Pin
leslie wu18-Mar-09 7:07
leslie wu18-Mar-09 7:07 
AnswerRe: Some help on interpreting this makefile for linux... Pin
Stuart Dootson18-Mar-09 8:14
professionalStuart Dootson18-Mar-09 8:14 
AnswerRe: Some help on interpreting this makefile for linux... Pin
bolivar12318-Mar-09 8:18
bolivar12318-Mar-09 8:18 
AnswerRe: Some help on interpreting this makefile for linux... Pin
CPallini18-Mar-09 8:35
mveCPallini18-Mar-09 8:35 
QuestionDevPartner Studio Pin
BobInNJ18-Mar-09 5:58
BobInNJ18-Mar-09 5:58 
AnswerRe: DevPartner Studio Pin
Stuart Dootson18-Mar-09 6:41
professionalStuart Dootson18-Mar-09 6:41 
AnswerRe: DevPartner Studio Pin
Joe Woodbury18-Mar-09 10:10
professionalJoe Woodbury18-Mar-09 10:10 
QuestionMove a file into an other file Pin
moody12318-Mar-09 4:47
moody12318-Mar-09 4:47 
Hello guys, i'm a c++ beginner
i'm trying to move or copy a text file into another binary file through this code but it doesn't work ;
#include <iostream>
#include <fstream> 

const static int BUF_SIZE = 4096; 

using std::ios_base; 

int main(int argc, char** argv) {

   std::ifstream in ( ("C:\\forTest.txt"), ios_base::in | ios_base::binary);
   std::ofstream out ( ("C:\\Test.bin"), ios_base::out | ios_base::binary);


   char buf[BUF_SIZE];

   do {
      in.read(&buf[0], BUF_SIZE);     
      out.write(&buf[0], in.gcount()); 
   } while (in.gcount() > 0);        


   in.close();
   out.close();
} 


Then i want to know how to get the file information like, size, last modification...etc

Thanks in advance
AnswerRe: Move a file into an other file Pin
led mike18-Mar-09 4:59
led mike18-Mar-09 4:59 
AnswerRe: Move a file into an other file Pin
Eytukan18-Mar-09 5:08
Eytukan18-Mar-09 5:08 
AnswerRe: Move a file into an other file Pin
Cedric Moonen18-Mar-09 5:18
Cedric Moonen18-Mar-09 5:18 
QuestionRe: Move a file into an other file Pin
David Crow18-Mar-09 5:19
David Crow18-Mar-09 5:19 
AnswerRe: Move a file into an other file Pin
moody12318-Mar-09 6:25
moody12318-Mar-09 6:25 
QuestionInsufficient system resources exist to complete the requested service. Pin
SNI18-Mar-09 4:45
SNI18-Mar-09 4:45 
Questiong++ compiling paramter -static on Solaris sparc Pin
David Wong RZ18-Mar-09 3:26
David Wong RZ18-Mar-09 3:26 
AnswerRe: g++ compiling paramter -static on Solaris sparc Pin
Jerry.Wang18-Mar-09 3:29
Jerry.Wang18-Mar-09 3:29 
AnswerRe: g++ compiling paramter -static on Solaris sparc Pin
Jerry.Wang18-Mar-09 3:31
Jerry.Wang18-Mar-09 3:31 
AnswerRe: g++ compiling paramter -static on Solaris sparc Pin
Stuart Dootson18-Mar-09 4:37
professionalStuart Dootson18-Mar-09 4:37 
GeneralRe: g++ compiling paramter -static on Solaris sparc Pin
David Wong RZ18-Mar-09 22:59
David Wong RZ18-Mar-09 22:59 
GeneralRe: g++ compiling paramter -static on Solaris sparc Pin
David Wong RZ19-Mar-09 1:26
David Wong RZ19-Mar-09 1:26 
GeneralRe: g++ compiling paramter -static on Solaris sparc Pin
Stuart Dootson19-Mar-09 1:36
professionalStuart Dootson19-Mar-09 1:36 
QuestionHow to create window with Transparency level starts from 0 to 100%? Pin
p_196018-Mar-09 3:20
p_196018-Mar-09 3:20 
AnswerRe: How to create window with Transparency level starts from 0 to 100%? Pin
Jerry.Wang18-Mar-09 3:25
Jerry.Wang18-Mar-09 3:25 
GeneralRe: How to create window with Transparency level starts from 0 to 100%? Pin
p_196018-Mar-09 6:50
p_196018-Mar-09 6:50 
GeneralRe: How to create window with Transparency level starts from 0 to 100%? Pin
Jerry.Wang18-Mar-09 13:43
Jerry.Wang18-Mar-09 13:43 

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.