Click here to Skip to main content
15,894,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SDL screen in MFC applcation Pin
ThatsAlok1-Jun-06 23:45
ThatsAlok1-Jun-06 23:45 
GeneralRe: SDL screen in MFC applcation Pin
ThatsAlok1-Jun-06 23:45
ThatsAlok1-Jun-06 23:45 
GeneralRe: SDL screen in MFC applcation Pin
Maxwell Chen1-Jun-06 23:53
Maxwell Chen1-Jun-06 23:53 
QuestionHTML Encoding Pin
atimpoo1-Jun-06 19:40
atimpoo1-Jun-06 19:40 
QuestionMultiple Inheritance Pin
Scorpio1-Jun-06 19:22
Scorpio1-Jun-06 19:22 
AnswerRe: Multiple Inheritance Pin
Hamid_RT1-Jun-06 19:41
Hamid_RT1-Jun-06 19:41 
QuestionHow to user fopen function? Pin
huutribk20011-Jun-06 19:19
huutribk20011-Jun-06 19:19 
AnswerRe: How to user fopen function? [modified] Pin
kakan1-Jun-06 19:30
professionalkakan1-Jun-06 19:30 
<edit>
In general, try MSDN for this kind of problems (and heaps of other information).
http://msdn1.microsoft.com/en-us/default.aspx[^]


From MSDN:

The character string mode specifies the type of access requested for the file, as follows:

"r"

Opens for reading. If the file does not exist or cannot be found, the fopen call fails.

"w"

Opens an empty file for writing. If the given file exists, its contents are destroyed.

"a"

Opens for writing at the end of the file (appending) without removing the EOF marker before writing new data to the file; creates the file first if it doesn’t exist.

"r+"

Opens for both reading and writing. (The file must exist.)

"w+"

Opens an empty file for both reading and writing. If the given file exists, its contents are destroyed.

"a+"

Opens for reading and appending; the appending operation includes the removal of the EOF marker before new data is written to the file and the EOF marker is restored after writing is complete; creates the file first if it doesn’t exist.

When a file is opened with the "a" or "a+" access type, all write operations occur at the end of the file. The file pointer can be repositioned using fseek or rewind, but is always moved back to the end of the file before any write operation is carried out. Thus, existing data cannot be overwritten.

Probably you want to use "r"
GeneralRe: How to user fopen function? [modified] Pin
huutribk20011-Jun-06 20:09
huutribk20011-Jun-06 20:09 
GeneralRe: How to user fopen function? [modified] Pin
kakan1-Jun-06 20:25
professionalkakan1-Jun-06 20:25 
GeneralRe: How to user fopen function? [modified] Pin
huutribk20011-Jun-06 21:08
huutribk20011-Jun-06 21:08 
GeneralRe: How to user fopen function? [modified] Pin
kakan1-Jun-06 21:50
professionalkakan1-Jun-06 21:50 
GeneralRe: How to user fopen function? [modified] Pin
huutribk20011-Jun-06 22:04
huutribk20011-Jun-06 22:04 
GeneralRe: How to user fopen function? [modified] Pin
kakan1-Jun-06 22:32
professionalkakan1-Jun-06 22:32 
GeneralRe: How to user fopen function? [modified] Pin
huutribk20011-Jun-06 23:13
huutribk20011-Jun-06 23:13 
GeneralRe: How to user fopen function? [modified] Pin
kakan1-Jun-06 23:43
professionalkakan1-Jun-06 23:43 
GeneralRe: How to user fopen function? [modified] Pin
huutribk20014-Jun-06 18:57
huutribk20014-Jun-06 18:57 
GeneralRe: How to user fopen function? [modified] Pin
huutribk20014-Jun-06 21:19
huutribk20014-Jun-06 21:19 
QuestionHyperlink ed List Item in a List Control Pin
RajiRaghu1-Jun-06 19:06
RajiRaghu1-Jun-06 19:06 
AnswerRe: Hyperlink ed List Item in a List Control Pin
Nibu babu thomas1-Jun-06 19:21
Nibu babu thomas1-Jun-06 19:21 
AnswerRe: Hyperlink ed List Item in a List Control Pin
Hamid_RT1-Jun-06 19:34
Hamid_RT1-Jun-06 19:34 
Questionprogram executing error Pin
Y_Kaushik1-Jun-06 18:51
Y_Kaushik1-Jun-06 18:51 
AnswerRe: program executing error Pin
Benoy Bose1-Jun-06 18:59
Benoy Bose1-Jun-06 18:59 
QuestionShutdown function. Pin
Anu_Bala1-Jun-06 18:49
Anu_Bala1-Jun-06 18:49 
AnswerRe: Shutdown function. Pin
_AnsHUMAN_ 1-Jun-06 18:51
_AnsHUMAN_ 1-Jun-06 18:51 

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.