Click here to Skip to main content
15,892,965 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Doubt in Run time polymerphisim Pin
Cool_Phillip23-Mar-09 1:08
Cool_Phillip23-Mar-09 1:08 
GeneralRe: Doubt in Run time polymerphisim Pin
CPallini23-Mar-09 1:17
mveCPallini23-Mar-09 1:17 
QuestionHyperlink for send mail with use of static control? Pin
Le@rner22-Mar-09 23:51
Le@rner22-Mar-09 23:51 
AnswerRe: Hyperlink for send mail with use of static control? Pin
«_Superman_»23-Mar-09 0:04
professional«_Superman_»23-Mar-09 0:04 
GeneralRe: Hyperlink for send mail with use of static control? [modified] Pin
Le@rner23-Mar-09 0:54
Le@rner23-Mar-09 0:54 
GeneralRe: Hyperlink for send mail with use of static control? Pin
«_Superman_»23-Mar-09 1:36
professional«_Superman_»23-Mar-09 1:36 
GeneralRe: Hyperlink for send mail with use of static control? Pin
Le@rner23-Mar-09 1:48
Le@rner23-Mar-09 1:48 
QuestionHow to clean contents of a file Pin
PankajB22-Mar-09 23:33
PankajB22-Mar-09 23:33 
Hi there.

Lets say I have created a file as below...

#include <stdio.h>

int main ()
{
   FILE * pFile;
   int n;
   char name [100];

   pFile = fopen ("myfile.txt","w");
   for (n=0 ; n<3 ; n++)
   {
     puts ("please, enter a name: ");
     gets (name);
     fprintf (pFile, "Name %d [%-10.10s]\n",n,name);
   }
   fclose (pFile);

   return 0;
}


Now, my requirement is, each and every time I write a name into the file, i want to delete the previous name.
So, at a time I want to have just one name in the file.

Please suggest.

Thanks & Regards
PanB
AnswerRe: How to clean contents of a file Pin
_AnsHUMAN_ 22-Mar-09 23:37
_AnsHUMAN_ 22-Mar-09 23:37 
GeneralRe: How to clean contents of a file Pin
PankajB22-Mar-09 23:40
PankajB22-Mar-09 23:40 
GeneralRe: How to clean contents of a file Pin
Cedric Moonen22-Mar-09 23:44
Cedric Moonen22-Mar-09 23:44 
GeneralRe: How to clean contents of a file Pin
«_Superman_»22-Mar-09 23:44
professional«_Superman_»22-Mar-09 23:44 
GeneralRe: How to clean contents of a file Pin
PankajB22-Mar-09 23:49
PankajB22-Mar-09 23:49 
GeneralRe: How to clean contents of a file Pin
«_Superman_»23-Mar-09 0:02
professional«_Superman_»23-Mar-09 0:02 
AnswerRe: How to clean contents of a file Pin
Eytukan23-Mar-09 0:34
Eytukan23-Mar-09 0:34 
QuestionRe: How to clean contents of a file Pin
David Crow23-Mar-09 3:29
David Crow23-Mar-09 3:29 
QuestionCan we create a Toolbar without MenuBar? Pin
Abhijit D. Babar22-Mar-09 22:46
Abhijit D. Babar22-Mar-09 22:46 
AnswerRe: Can we create a Toolbar without MenuBar? Pin
Iain Clarke, Warrior Programmer22-Mar-09 23:32
Iain Clarke, Warrior Programmer22-Mar-09 23:32 
GeneralRe: Can we create a Toolbar without MenuBar? Pin
Abhijit D. Babar23-Mar-09 0:19
Abhijit D. Babar23-Mar-09 0:19 
GeneralRe: Can we create a Toolbar without MenuBar? Pin
Iain Clarke, Warrior Programmer23-Mar-09 0:28
Iain Clarke, Warrior Programmer23-Mar-09 0:28 
Questionfloating point exceptions instead of INF, NaN Pin
sor73naf22-Mar-09 22:42
sor73naf22-Mar-09 22:42 
AnswerRe: floating point exceptions instead of INF, NaN Pin
Dominik Reichl22-Mar-09 23:59
Dominik Reichl22-Mar-09 23:59 
GeneralRe: floating point exceptions instead of INF, NaN Pin
sor73naf23-Mar-09 3:03
sor73naf23-Mar-09 3:03 
QuestionWinInet - INTERNET_CACHE_ENTRY_INFO - Header Info [modified] Pin
CString(0xcccccccc)22-Mar-09 22:33
CString(0xcccccccc)22-Mar-09 22:33 
QuestionWhat is the SEH in release build VS2008 with fclose()? Pin
Chesnokov Yuriy22-Mar-09 22:32
professionalChesnokov Yuriy22-Mar-09 22: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.