Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple build configurations Pin
Tomasz Sowinski7-Nov-01 7:34
Tomasz Sowinski7-Nov-01 7:34 
GeneralRe: Multiple build configurations Pin
jfaulken7-Nov-01 12:46
jfaulken7-Nov-01 12:46 
GeneralRe: Multiple build configurations Pin
Tomasz Sowinski7-Nov-01 23:57
Tomasz Sowinski7-Nov-01 23:57 
GeneralRe: Multiple build configurations Pin
Mukkie7-Nov-01 7:56
Mukkie7-Nov-01 7:56 
GeneralQuick Question Pin
RobJones7-Nov-01 4:19
RobJones7-Nov-01 4:19 
GeneralRe: Quick Question Pin
Michael P Butler7-Nov-01 4:28
Michael P Butler7-Nov-01 4:28 
GeneralRe: Quick Question Pin
RobJones7-Nov-01 4:36
RobJones7-Nov-01 4:36 
Generalfile streaming Pin
Bernhard7-Nov-01 4:16
Bernhard7-Nov-01 4:16 
okay.. i've used fopen for too long, now i want to get rid of it.. so i started using fstream..
the problem right now is that i would like to STREAM all the data in a file into a std::string - object..

i've tried sthing like:
string line;
ifstream file(sz_path1);

file.read (line);


msdn says:
"The read Function
The read member function reads bytes from a file to a specified area of memory. The length argument determines the number of bytes read. If you do not include that argument, reading stops when the physical end of file is reached or, in the case of a text-mode file, when an embedded EOF character is read."

the first error i get is that there should be just one argument.. okay.. wdf should says the msdn text ???
other thing.. if there would be a possibility for doing that, would there be a way to stream directly into a string ??
or do i have to use a stringstream ??

BTW: i already tried to use getline.. but it doesn't work, cause i need the whole context...

thanks in advance and have a nice one
bernhard


""Politicians and diapers have one thing in common. They should both be changed regularly and for the same reason."
General"Funny" problem with MSVC6 and flatscreen Pin
Steen Krogsgaard7-Nov-01 2:29
Steen Krogsgaard7-Nov-01 2:29 
GeneralRe: "Funny" problem with MSVC6 and flatscreen Pin
Michael P Butler7-Nov-01 2:43
Michael P Butler7-Nov-01 2:43 
GeneralRe: "Funny" problem with MSVC6 and flatscreen Pin
Steen Krogsgaard7-Nov-01 3:42
Steen Krogsgaard7-Nov-01 3:42 
GeneralRe: "Funny" problem with MSVC6 and flatscreen Pin
Michael P Butler7-Nov-01 4:21
Michael P Butler7-Nov-01 4:21 
GeneralRe: "Funny" problem with MSVC6 and flatscreen Pin
Steen Krogsgaard8-Nov-01 1:15
Steen Krogsgaard8-Nov-01 1:15 
GeneralRe: "Funny" problem with MSVC6 and flatscreen Pin
Mukkie7-Nov-01 8:06
Mukkie7-Nov-01 8:06 
GeneralRe: "Funny" problem with MSVC6 and flatscreen Pin
Michael Dunn7-Nov-01 8:06
sitebuilderMichael Dunn7-Nov-01 8:06 
GeneralRe: "Funny" problem with MSVC6 and flatscreen Pin
Steen Krogsgaard8-Nov-01 1:17
Steen Krogsgaard8-Nov-01 1:17 
Generalmultiple session Pin
7-Nov-01 1:29
suss7-Nov-01 1:29 
QuestionMSVC6 performance tips? Pin
Rob Caldecott7-Nov-01 1:19
Rob Caldecott7-Nov-01 1:19 
AnswerRe: MSVC6 performance tips? Pin
#realJSOP7-Nov-01 1:25
mve#realJSOP7-Nov-01 1:25 
AnswerRe: MSVC6 performance tips? Pin
Tomasz Sowinski7-Nov-01 1:34
Tomasz Sowinski7-Nov-01 1:34 
GeneralRe: MSVC6 performance tips? Pin
Rob Caldecott7-Nov-01 2:00
Rob Caldecott7-Nov-01 2:00 
GeneralRe: MSVC6 performance tips? Pin
Tomasz Sowinski7-Nov-01 2:19
Tomasz Sowinski7-Nov-01 2:19 
GeneralRe: MSVC6 performance tips? Pin
Rob Caldecott7-Nov-01 2:24
Rob Caldecott7-Nov-01 2:24 
GeneralRe: MSVC6 performance tips? Pin
Tomasz Sowinski7-Nov-01 3:00
Tomasz Sowinski7-Nov-01 3:00 
AnswerRe: MSVC6 performance tips? Pin
Philippe Mori7-Nov-01 3:32
Philippe Mori7-Nov-01 3:32 

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.