Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CUIntArray & CList where the error is Pin
16-Dec-01 10:05
suss16-Dec-01 10:05 
GeneralOLE container ambient properties Pin
Paul S16-Dec-01 6:33
Paul S16-Dec-01 6:33 
GeneralProblem With std::getline And C++ Pin
valikac16-Dec-01 4:44
valikac16-Dec-01 4:44 
GeneralRe: Problem With std::getline And C++ Pin
Joaquín M López Muñoz16-Dec-01 10:45
Joaquín M López Muñoz16-Dec-01 10:45 
GeneralRe: Problem With std::getline And C++ Pin
valikac16-Dec-01 16:03
valikac16-Dec-01 16:03 
GeneralReading and Writing Data From ifstream to *STL Container* in *Binary* Pin
valikac16-Dec-01 4:35
valikac16-Dec-01 4:35 
GeneralRe: Reading and Writing Data From ifstream to *STL Container* in *Binary* Pin
Todd Smith16-Dec-01 4:46
Todd Smith16-Dec-01 4:46 
GeneralRe: Reading and Writing Data From ifstream to *STL Container* in *Binary* Pin
valikac16-Dec-01 5:05
valikac16-Dec-01 5:05 
Thanks.

Okay, this is more advanced STL than I am used to. I have no prior knowledge of istreambuf_iterator or ostreambuf_iterator.

First will:

vector data((istreambuf_iterator(file)), istreambuf_iterator());

read data from a file into vector data in *binary* mode?

I am used to something like:

--------------------
char x[5];

istream data;
data.open(x, ios::in | ios::binary);

data.read(reinterpret_cast<char *="">(x), 5);
--------------------

The same goes for data.reserve("size???").

Kuphryn
GeneralColor Ramp Pin
Paul Selormey16-Dec-01 1:07
Paul Selormey16-Dec-01 1:07 
GeneralRe: Color Ramp Pin
PJ Arends16-Dec-01 9:37
professionalPJ Arends16-Dec-01 9:37 
GeneralRe: Color Ramp Pin
Daniel Ferguson16-Dec-01 9:40
Daniel Ferguson16-Dec-01 9:40 
GeneralRe: Color Ramp Pin
Rick York16-Dec-01 10:27
mveRick York16-Dec-01 10:27 
GeneralRe: Color Ramp Pin
Serge Baltic16-Dec-01 21:56
Serge Baltic16-Dec-01 21:56 
GeneralRe: Color Ramp-Thanks Pin
Paul Selormey16-Dec-01 13:03
Paul Selormey16-Dec-01 13:03 
QuestionWhich ActiveX controls can i use? Pin
15-Dec-01 23:44
suss15-Dec-01 23:44 
QuestionAre there any News Groups for Linux newbies? Pin
BigMouth15-Dec-01 23:41
BigMouth15-Dec-01 23:41 
AnswerRe: Are there any News Groups for Linux newbies? Pin
Michael Dunn16-Dec-01 8:15
sitebuilderMichael Dunn16-Dec-01 8:15 
GeneralRe: Are there any News Groups for Linux newbies? Pin
BigMouth16-Dec-01 17:53
BigMouth16-Dec-01 17:53 
GeneralRe: Are there any News Groups for Linux newbies? Pin
markkuk17-Dec-01 20:14
markkuk17-Dec-01 20:14 
GeneralRe: Are there any News Groups for Linux newbies? Pin
BigMouth18-Dec-01 17:08
BigMouth18-Dec-01 17:08 
GeneralAnother Timezone problem Pin
Wolfram Steinke15-Dec-01 20:06
Wolfram Steinke15-Dec-01 20:06 
GeneralRe: Another Timezone problem Pin
Daniel Ferguson15-Dec-01 21:34
Daniel Ferguson15-Dec-01 21:34 
GeneralRe: Another Timezone problem Pin
Wolfram Steinke15-Dec-01 21:46
Wolfram Steinke15-Dec-01 21:46 
QuestionHoW dO i CrEaTe A dIreEcToRy? Pin
15-Dec-01 16:21
suss15-Dec-01 16:21 
AnswerRe: HoW dO i CrEaTe A dIreEcToRy? Pin
Rick York15-Dec-01 16:57
mveRick York15-Dec-01 16:57 

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.