Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to format unsigned long to Cstring? Pin
toxcct10-Jan-08 21:17
toxcct10-Jan-08 21:17 
JokeRe: How to format unsigned long to Cstring? Pin
CPallini10-Jan-08 21:40
mveCPallini10-Jan-08 21:40 
GeneralRe: How to format unsigned long to Cstring? Pin
toxcct10-Jan-08 21:48
toxcct10-Jan-08 21:48 
GeneralRe: How to format unsigned long to Cstring? Pin
CPallini10-Jan-08 22:07
mveCPallini10-Jan-08 22:07 
GeneralRe: How to format unsigned long to Cstring? Pin
Mark Salsbery11-Jan-08 8:29
Mark Salsbery11-Jan-08 8:29 
Questionhow can read from binary file? Pin
Le@rner10-Jan-08 20:48
Le@rner10-Jan-08 20:48 
AnswerRe: how can read from binary file? Pin
Nishad S10-Jan-08 21:06
Nishad S10-Jan-08 21:06 
GeneralRe: how can read from binary file? Pin
Le@rner10-Jan-08 22:20
Le@rner10-Jan-08 22:20 
//m_Path=input path
//m_Path2=output path

fstream rfile(m_Path,ios::in|ios::binary);//input file

fstream wfile(m_Path2,ios::out|ios::binary);//output file
//SeekPos is a starting location from where i start reading.
//SeekPos is a ending location till that i read.

char buffer[200000];
for(SeekPos;SeekPos<=SeekPos2;SeekPos++)

{
//rfile.get(ch);//if i read as character wise.
//wfile.put(ch);

rfile.read(buffer,sizeof(buffer));read from buffer
wfile.write(buffer,sizeof(buffer));
wfile.flush();
rfile.flush();


}

rfile.close();
wfile.close();


i m using this code plz tell me
GeneralRe: how can read from binary file? Pin
CPallini10-Jan-08 22:31
mveCPallini10-Jan-08 22:31 
GeneralRe: how can read from binary file? Pin
Le@rner10-Jan-08 22:36
Le@rner10-Jan-08 22:36 
QuestionRe: how can read from binary file? [modified] Pin
Nishad S10-Jan-08 22:34
Nishad S10-Jan-08 22:34 
GeneralRe: how can read from binary file? Pin
Le@rner10-Jan-08 22:47
Le@rner10-Jan-08 22:47 
GeneralRe: how can read from binary file? Pin
CPallini10-Jan-08 22:54
mveCPallini10-Jan-08 22:54 
GeneralRe: how can read from binary file? Pin
Nishad S10-Jan-08 22:58
Nishad S10-Jan-08 22:58 
AnswerRe: how can read from binary file? Pin
Hamid_RT10-Jan-08 21:08
Hamid_RT10-Jan-08 21:08 
GeneralRe: how can read from binary file? Pin
Le@rner10-Jan-08 22:19
Le@rner10-Jan-08 22:19 
GeneralRe: how can read from binary file? Pin
David Crow11-Jan-08 3:03
David Crow11-Jan-08 3:03 
GeneralRe: how can read from binary file? Pin
Le@rner11-Jan-08 23:14
Le@rner11-Jan-08 23:14 
General[Message Deleted] Pin
Le@rner10-Jan-08 20:45
Le@rner10-Jan-08 20:45 
GeneralRe: how can read binary file? Pin
Hamid_RT10-Jan-08 21:11
Hamid_RT10-Jan-08 21:11 
QuestionCan we save multiple documents in SDI application Pin
Atul2310-Jan-08 20:43
Atul2310-Jan-08 20:43 
QuestionCheck EOF Pin
nitin310-Jan-08 20:19
nitin310-Jan-08 20:19 
GeneralRe: Check EOF Pin
Hamid_RT10-Jan-08 21:33
Hamid_RT10-Jan-08 21:33 
JokeRe: Check EOF Pin
CPallini10-Jan-08 21:37
mveCPallini10-Jan-08 21:37 
GeneralRe: Check EOF Pin
Maxwell Chen10-Jan-08 21:39
Maxwell Chen10-Jan-08 21:39 

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.